From 8a636d0600dc7000d1e12b2fc4f4f46ecd70164a Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 23 May 2024 10:27:58 +1000 Subject: feat(ext/fetch): `Request.bytes()` and `Response.bytes()` (#23823) Closes #23790 --- tests/specs/run/045_proxy/proxy_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/specs') diff --git a/tests/specs/run/045_proxy/proxy_test.ts b/tests/specs/run/045_proxy/proxy_test.ts index d3386f0d7..582b0e638 100644 --- a/tests/specs/run/045_proxy/proxy_test.ts +++ b/tests/specs/run/045_proxy/proxy_test.ts @@ -23,7 +23,7 @@ async function handler(req: Request): Promise { method: req.method, headers: headers, }); - return new Response(new Uint8Array(await resp.arrayBuffer()), { + return new Response(await resp.bytes(), { status: resp.status, headers: resp.headers, }); -- cgit v1.2.3