Skip to content

Commit be14162

Browse files
author
Guy Bedford
committed
fixup
1 parent 439456b commit be14162

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

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

233234
routes.set('/override-content-length/response/method/false', async () => {

0 commit comments

Comments
 (0)