We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff4529 commit dab45a6Copy full SHA for dab45a6
integration-tests/js-compute/fixtures/app/src/manual-framing-headers.js
@@ -224,8 +224,11 @@ async function responseMethod(setManualFramingHeaders) {
224
backend: 'httpbin',
225
cacheOverride: new CacheOverride('pass'),
226
});
227
- const outResponse = new Response(response);
228
- outResponse.setManualFramingHeaders(setManualFramingHeaders);
+ const outResponse = new Response(response.body, {
+ headers: response.headers,
229
+ status: response.status,
230
+ });
231
+ response.setManualFramingHeaders(setManualFramingHeaders);
232
outResponse.headers.set('content-length', '11');
233
outResponse.headers.delete('transfer-encoding');
234
return outResponse;
0 commit comments