From 4360ec83b4146e15344b304573795f084f86a7c2 Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Thu, 7 Sep 2023 02:23:24 -0300 Subject: 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 --- test/js/workerd/html-rewriter.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/js/workerd/html-rewriter.test.js') 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", { -- cgit v1.2.3