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:
Patrick Uiterwijk 2017-05-22 02:45:40 +00:00
parent fedf0525b0
commit f4f0d9338e

View file

@ -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"