- From: Mattias Buelens <notifications@github.com>
- Date: Thu, 07 Jun 2018 12:51:29 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 7 June 2018 19:51:52 UTC
In #924, a text decoding step was added to example 8.9 so it could run in the browser. However, the reverse needs to happen in order to construct a valid `Response` with the transformed stream. Specifically, in step 3 of "read all bytes from a ReadableStream" from [the Fetch specification](https://fetch.spec.whatwg.org/#concept-read-all-bytes-from-readablestream), the stream must produce `Uint8Array` objects for it to be consumed correctly. This PR fixes this by adding an extra pipe through a `TextEncoderStream`. You can view, comment on, or merge this pull request online at: https://github.com/whatwg/streams/pull/930 -- Commit Summary -- * Add a text encoding step to example 8.9 -- File Changes -- M index.bs (4) -- Patch Links -- https://github.com/whatwg/streams/pull/930.patch https://github.com/whatwg/streams/pull/930.diff -- 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/streams/pull/930
Received on Thursday, 7 June 2018 19:51:52 UTC