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

fails with "Error parsing chunked transfer" on some websites #34

Closed
Shnatsel opened this issue Mar 6, 2021 · 1 comment
Closed

fails with "Error parsing chunked transfer" on some websites #34

Shnatsel opened this issue Mar 6, 2021 · 1 comment

Comments

@Shnatsel
Copy link

Shnatsel commented Mar 6, 2021

On some websites, e.g. http://eagle.ca, mio_httpc v0.9.4 fails with the following error:

Error parsing chunked transfer

Firefox, curl and ureq work fine.

There's 154 such websites in the top million (I'm using Tranco list generated on the 3rd of February).

Archive with all occurrences: mio_httpc-error-parsing-chunked-transfer.tar.gz

Code used for testing: https://github.com/Shnatsel/rust-http-clients-smoke-test/blob/8e3285a45e1d657744a2697ced1bd8461031fb86/mio_httpc-smoke-test/src/main.rs

SergejJurecko added a commit that referenced this issue Mar 7, 2021
… a better error if decompression fails #36, more permissive chunk transfer parsing #34
@SergejJurecko
Copy link
Owner

0.9.5 is more permissive now. Technically those websites are not really correct in their response. There should be no spaces in chunk size rows.

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

2 participants