Unset Accept-Encoding for kojipkgs
python-requests sets this to "gzip, deflate", and when it tries to download an aarch64 vmlinuz, it gets (correctly) reported as Encoding: gzip. This triggers automatic gzip decompression by urllib3, resulting in the following error: Expected to download 6529431 bytes, downloaded 15618560 Unsetting Accept-Encoding request header tells mod_deflate it should not send the Encoding: gzip header, avoiding the auto-decompression by urllib3. Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
fedf0525b0
commit
f4f0d9338e
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
ServerName https://kojipkgs.fedoraproject.org
|
||||
|
||||
RequestHeader unset Accept-Encoding early
|
||||
|
||||
CustomLog "| /usr/sbin/rotatelogs /var/log/httpd/kojipkgs01.fedoraproject.org-access.log.%Y-%m-%d 86400" combined
|
||||
ErrorLog "| /usr/sbin/rotatelogs /var/log/httpd/kojipkgs01.fedoraproject.org-error.log.%Y-%m-%d 86400"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue