-
Notifications
You must be signed in to change notification settings - Fork 100
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
HEAD fails on compressed response #253
Comments
This comment from seanmonstar/reqwest#83 might be relevant
|
It took me a while to understand, but I think the relevant piece in the current reqwest code is here: https://github.com/seanmonstar/reqwest/blob/2a6e012009fb79065767cb49a8a000d354c47ba6/src/async_impl/decoder.rs#L285 reqwest doesn't wrap a decoder around the stream until it did a So we have the following situations:
So we need to skip the gzip decoding or ignore the error if the body is totally empty. Maybe we can fold this into the existing |
Edit: Actually, let's wait for #256 to get merged first. |
Fixed in xh v0.16.1 |
This didn't happen before #241, so reqwest deals with it correctly. I don't know how.
The text was updated successfully, but these errors were encountered: