anthumchris / fetch-progress-indicators

Progress indicators/bars using Streams, Service Workers, and Fetch APIs
https://fetch-progress.anthum.com/
MIT License
360 stars 36 forks source link

Headers from original request not forwarded #12

Open klebba opened 5 years ago

klebba commented 5 years ago

Hi there -- thanks for these examples. One improvement I suggest is to show how to forward the headers from the original request:

return new Response(stream, { headers: response.headers });
anthumchris commented 5 years ago

@klebba I don't see that causing any issues to the examples if you'd like to submit a PR for it. thanks!