Re: [whatwg/fetch] Cloned responses should not have immutable headers (#608)

The portion you quoted is about the trailer, not the headers. The headers end up being copied with the same guard as the input. I suspect your concern is with inputs where the guard is "immutable" and therefore the clone being "immutable" too.

If you create a new `Response` object you don't get to set the url list or its type (or trailer, but that's less significant and possibly an oversight). Also, you should be able to do:

> const responseClone = new Response(inputResponse.body, inputResponse);

which means you can do it all synchronously and not have to wait for anything.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/608#issuecomment-332462271

Received on Wednesday, 27 September 2017 09:21:20 UTC