On Mon, May 22, 2017 at 07:21:58PM -0600, Kevin Fenzi wrote: > This was debugged and sorted out by dusty and patrick... but I'll put up the freeze break. > > +1s? > > kevin > -- > commit 21567213544015bba8390c096543d892cf5bb563 > Author: Patrick Uiterwijk <puiterwijk@xxxxxxxxxx> > Date: Mon May 22 02:45:40 2017 +0000 > > 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@xxxxxxxxxx> > > diff --git a/roles/kojipkgs/files/kojipkgs.conf b/roles/kojipkgs/files/kojipkgs.conf > index 5779a74..cf8ea56 100644 > --- a/roles/kojipkgs/files/kojipkgs.conf > +++ b/roles/kojipkgs/files/kojipkgs.conf > @@ -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" +1 for me Pierre
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx