Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[streaming-fetch] The percentage calculator is broken #1

Open
ferrybig opened this issue Jan 30, 2019 · 0 comments
Open

[streaming-fetch] The percentage calculator is broken #1

ferrybig opened this issue Jan 30, 2019 · 0 comments

Comments

@ferrybig
Copy link

I'm trying to use the fetch download progress code you shared https://twitter.com/umaar/status/917789464658890753/photo/1

Demo: https://sitepen.github.io/javascript-streams-blog-examples/streaming-fetch/

Instead of a normal progress going from 0 to 100%, its going to 25508% (chunk 73)

According to my network tab, the following headers are send:

content-length: 18966
content-encoding: gzip

While the actual file size is 4.8MB

But the code seems to assume the content length is the file length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant