summaryrefslogtreecommitdiff
path: root/cli/js/tls_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/tls_test.ts')
-rw-r--r--cli/js/tls_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/tls_test.ts b/cli/js/tls_test.ts
index 1273da34f..ac59a2eb9 100644
--- a/cli/js/tls_test.ts
+++ b/cli/js/tls_test.ts
@@ -195,7 +195,7 @@ testPerm({ read: true, net: true }, async function dialAndListenTLS(): Promise<
assertEquals(ok, "OK");
const headers = await tpr.readMIMEHeader();
assert(headers !== Deno.EOF);
- const contentLength = parseInt(headers.get("content-length"));
+ const contentLength = parseInt(headers.get("content-length")!);
const bodyBuf = new Uint8Array(contentLength);
await r.readFull(bodyBuf);
assertEquals(decoder.decode(bodyBuf), "Hello World\n");