From 652be19041246d762ac5a1fa0b7fcddecb1ffd5d Mon Sep 17 00:00:00 2001 From: Kurt Mackey Date: Fri, 31 May 2019 14:00:37 -0700 Subject: use body when Request instance is passed to fetch (fixes #2433) (#2435) --- js/fetch_test.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'js/fetch_test.ts') diff --git a/js/fetch_test.ts b/js/fetch_test.ts index 5bec33d41..b93f7845a 100644 --- a/js/fetch_test.ts +++ b/js/fetch_test.ts @@ -99,7 +99,6 @@ testPerm({ net: true }, async function fetchInitStringBody(): Promise { assert(response.headers.get("content-type").startsWith("text/plain")); }); -/* TODO(ry) Re-enable this test. testPerm({ net: true }, async function fetchRequestInitStringBody(): Promise< void > { @@ -111,9 +110,7 @@ testPerm({ net: true }, async function fetchRequestInitStringBody(): Promise< const response = await fetch(req); const text = await response.text(); assertEquals(text, data); - assert(response.headers.get("content-type").startsWith("text/plain")); }); -*/ testPerm({ net: true }, async function fetchInitTypedArrayBody(): Promise< void -- cgit v1.2.3