From 35575a6a36054a26c432ddd7040df215bbee5e4e Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Fri, 11 Oct 2024 17:31:14 -0700 Subject: [PATCH] fixup --- .../js-compute/fixtures/app/src/manual-framing-headers.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/integration-tests/js-compute/fixtures/app/src/manual-framing-headers.js b/integration-tests/js-compute/fixtures/app/src/manual-framing-headers.js index a2a73fd6d76..5e8c434c853 100644 --- a/integration-tests/js-compute/fixtures/app/src/manual-framing-headers.js +++ b/integration-tests/js-compute/fixtures/app/src/manual-framing-headers.js @@ -224,8 +224,11 @@ async function responseMethod(setManualFramingHeaders) { backend: 'httpbin', cacheOverride: new CacheOverride('pass'), }); - const outResponse = new Response(response); - outResponse.setManualFramingHeaders(setManualFramingHeaders); + const outResponse = new Response(response.body, { + headers: response.headers, + status: response.status, + }); + response.setManualFramingHeaders(setManualFramingHeaders); outResponse.headers.set('content-length', '11'); outResponse.headers.delete('transfer-encoding'); return outResponse;