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;