Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 11, 2024
1 parent 439456b commit be14162
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,11 @@ async function responseMethod(setManualFramingHeaders) {
backend: 'httpbin',
cacheOverride: new CacheOverride('pass'),
});
response.setManualFramingHeaders(setManualFramingHeaders);
response.headers.set('content-length', '11');
response.headers.delete('transfer-encoding');
return response;
const outResponse = new Response(response);
outResponse.setManualFramingHeaders(setManualFramingHeaders);
outResponse.headers.set('content-length', '11');
outResponse.headers.delete('transfer-encoding');
return outResponse;
}

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

0 comments on commit be14162

Please sign in to comment.