Skip to content

Commit dab45a6

Browse files
author
Guy Bedford
committed
fixup
1 parent bff4529 commit dab45a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

integration-tests/js-compute/fixtures/app/src/manual-framing-headers.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,11 @@ async function responseMethod(setManualFramingHeaders) {
224224
backend: 'httpbin',
225225
cacheOverride: new CacheOverride('pass'),
226226
});
227-
const outResponse = new Response(response);
228-
outResponse.setManualFramingHeaders(setManualFramingHeaders);
227+
const outResponse = new Response(response.body, {
228+
headers: response.headers,
229+
status: response.status,
230+
});
231+
response.setManualFramingHeaders(setManualFramingHeaders);
229232
outResponse.headers.set('content-length', '11');
230233
outResponse.headers.delete('transfer-encoding');
231234
return outResponse;

0 commit comments

Comments
 (0)