Skip to content

Commit 361e937

Browse files
committed
RDBC-963 Fix off-by-one error in certificate parsing logic in HttpsTest.
1 parent f639c4a commit 361e937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Ported/HttpsTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ async function extractCertificate(certificateRawData: CertificateRawData) {
280280
if (entry.path.endsWith(".crt")) {
281281
const entryText = await readToEnd(entry);
282282
const lines = entryText.split(/\r?\n/);
283-
cert = lines.slice(1, - 2).join("\r\n");
283+
cert = lines.slice(1, -1).join("\r\n");
284284
break;
285285
} else {
286286
entry.autodrain();

0 commit comments

Comments
 (0)