Re: [ServiceWorker] FetchEvent.respondWith does something weird with the body of a response (#850)

>From an implementation perspective we effectively serialize the Response into a C++ representation.  That may or may not become another Response object depending on what initiated the request.

So I guess in spec language I would say you need to create a new internal response (lower case r) with a pipe for a body.  Then the original body stream is .pipeTo()'d the new response's body.  (Which I think what @yutakahirano just posted.)

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/850#issuecomment-197893580

Received on Thursday, 17 March 2016 14:09:16 UTC