Skip to content

Commit 86bd7e9

Browse files
committed
RDBC-963 Fix off-by-one error in certificate parsing logic in HttpsTest.
1 parent 66b0bd3 commit 86bd7e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)