Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 12, 2024
1 parent be14162 commit 35575a6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 35575a6

Please sign in to comment.