elm / http

Make HTTP requests in Elm
https://package.elm-lang.org/packages/elm/http/latest
BSD 3-Clause "New" or "Revised" License
155 stars 46 forks source link

Progress demo not working #36

Closed mtricht closed 5 years ago

mtricht commented 6 years ago

The progress demo that can be found here does not work;

screenshot from 2017-11-08 23-03-42

process-bot commented 6 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

pablohirafuji commented 6 years ago

The progress demo needs the server to serve the content without compression/gzip. I no longer have the ftp that I used to serve the uncompressed content.

pablohirafuji commented 6 years ago

I updated the example and moved it to GitHub: https://github.com/pablohirafuji/elm-http-progress-example. Also added a note about the lack of support of this feature when the content is gzipped.

pablohirafuji commented 6 years ago

The issue is: chrome and others browsers does not implement tracking progress when the content is gzipped because the specs are unclear whether the value of the content-length header should be after-decoding or before-decoding. More details at https://bugs.chromium.org/p/chromium/issues/detail?id=463622.

evancz commented 5 years ago

There are new examples of using tracking progress over here: https://github.com/elm/file/tree/master/examples

They should work better. I see notes about the gzip issue online in various places though, so that part may still be odd.