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
libstore/filetransfer: set CURLOPT_ACCEPT_ENCODING #4191
Conversation
This allows Nix to use transport-level compression, where supported.
This breaks
|
That file is brotli-compressed BTW. Curl gives the following warning:
Note that |
This is caused by a misconfiguration of the object's properties:
So |
Or, well. Technically it is correct, and modern browsers will accept it, but older curl doesn't understand it (7.57.0 and up do |
How is it misconfigured? The file is encoded using Brotli. |
See my reply immediately after. I misparsed it as the |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
This allows Nix to use transport-level compression, where supported.
As documented on https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html, setting an empty string will use libcurl's default.
Also, no tests ran, because
nix-build
failed: