File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
integration-tests/js-compute/fixtures/app/src Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -224,10 +224,11 @@ async function responseMethod(setManualFramingHeaders) {
224
224
backend : 'httpbin' ,
225
225
cacheOverride : new CacheOverride ( 'pass' ) ,
226
226
} ) ;
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 ;
231
232
}
232
233
233
234
routes . set ( '/override-content-length/response/method/false' , async ( ) => {
You can’t perform that action at this time.
0 commit comments