From a6c840d15020b72326832c19e6a5ac0d95b9bdca Mon Sep 17 00:00:00 2001 From: Craig Morten Date: Mon, 5 Jul 2021 11:38:12 +0100 Subject: fix(fetch): OPTIONS should be allowed a non-null body (#11242) --- cli/tests/unit/fetch_test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli') diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts index 46eceb50c..a84e18367 100644 --- a/cli/tests/unit/fetch_test.ts +++ b/cli/tests/unit/fetch_test.ts @@ -1217,3 +1217,13 @@ unitTest( await done; }, ); + +unitTest( + { perms: { net: true } }, + async function fetchHeadRespBody() { + const res = await fetch("http://localhost:4545/echo_server", { + method: "HEAD", + }); + assertEquals(res.body, null); + }, +); -- cgit v1.2.3