-
Notifications
You must be signed in to change notification settings - Fork 610
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
Wrong headers for some google-y crates from crates.io #1179
Comments
It looks like this is related to 53cbb26. It was fixed in June 2015, but the crate is |
@jtgeibel that's interesting! In fact it might seem that the Version 0.1.15 of winapi was released in March 10, 2015. However, it has a Version 0.1.14 has a Both dates are very close to each other, as if someone ran a script to clean up crates.io. |
For future reference when cleaning these up on S3, my guess is that these were missed in the original cleanup script due to the build metadata (and |
@jtgeibel do you happen to remember if we saved this cleanup script anywhere? 😅 |
I tried to reproduce the issue but it looks like there is no |
I am using reqwest to download crates from the Amazon CloudFront crates.io crate storage backend (to not artificially inflate the download counter). For most crates this works greatly, as in I can get files with the same check sum that is mentioned in the registry, but for some crates with
google
in their name, I stumbled across a bug: I got already extracted files in the tar format.E.g. this URL works:
but this URL does not:
I've first thought that this is a reqwest bug as curl and wget seem to be able to download the files perfectly fine. But then I found out that Firefox has the same behaviour as reqwest. Just try to paste the two URLs into Firefox and inspect the downloaded files!
When you run curl -I on the two URLs above, you can see that the google crate has a
Content-Encoding
header while winapi lacks it.I fortunately am able work around the issue by turning off gzip support in the
ClientBuilder
but the underlying issue is that these headers get sent by hosting.This issue might probably re-surface if cargo decides to switch to using hyper.
The text was updated successfully, but these errors were encountered: