aboutsummaryrefslogtreecommitdiff
path: root/test/js/workerd/html-rewriter.test.js
diff options
context:
space:
mode:
authorGravatar Ciro Spaciari <ciro.spaciari@gmail.com> 2023-09-07 02:23:24 -0300
committerGravatar GitHub <noreply@github.com> 2023-09-06 22:23:24 -0700
commit4360ec83b4146e15344b304573795f084f86a7c2 (patch)
treed2df0876f7885b856632d5bdcee06835c63787fe /test/js/workerd/html-rewriter.test.js
parent3b9829f17134a21790f1524f3391409f385dfee9 (diff)
downloadbun-4360ec83b4146e15344b304573795f084f86a7c2.tar.gz
bun-4360ec83b4146e15344b304573795f084f86a7c2.tar.zst
bun-4360ec83b4146e15344b304573795f084f86a7c2.zip
feat(fetch) rejectUnauthorized and checkServerIdentity (#4514)
* enable root certs on fetch * rebase * fix lookup * some fixes and improvements * fmt * more fixes * more fixes * check detached onHandshake * fix promise case * fix cert non-Native * add fetch tls tests * more one test
Diffstat (limited to 'test/js/workerd/html-rewriter.test.js')
-rw-r--r--test/js/workerd/html-rewriter.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/js/workerd/html-rewriter.test.js b/test/js/workerd/html-rewriter.test.js
index b5c1f7c76..b0c951197 100644
--- a/test/js/workerd/html-rewriter.test.js
+++ b/test/js/workerd/html-rewriter.test.js
@@ -516,7 +516,7 @@ const request_types = ["/", "/gzip", "/chunked/gzip", "/chunked", "/file", "/fil
test(`works with ${protocol} fetch using ${url}`, async () => {
const server = protocol === "http" ? http_server : https_server;
const server_url = `${protocol}://${server?.hostname}:${server?.port}`;
- const res = await fetch(`${server_url}${url}`);
+ const res = await fetch(`${server_url}${url}`, { tls: { rejectUnauthorized: false } });
let calls = 0;
const rw = new HTMLRewriter();
rw.on("h1", {