Le 28/05/2020 à 18:17, Gianfranco Costamagna a écrit : > Source: devscripts > Version: 2.20.3 > X-Debbugs-CC: y...@debian.org > > Hello, looks like ghc watch file is not able to work anymore > > version=3 > opts="pgpsigurlmangle=s/$/.sig/,dirversionmangle=s/-rc/~rc/,repacksuffix=+dfsg1,dversionmangle=s/\+dfsg\d*$//" > \ > https://downloads.haskell.org/~ghc/(\d[\d.rc-]*)/ghc-(\d[\d.]*)-src.tar.(?:bz2|xz|gz) > > > the problem is that the https://downloads.haskell.org/~ghc/ page is > configured to send gzipped content > (something that browsers handle natively). > > I'm not able to speak perl, but I crafted a "fake patch" that worked for me > to grab the new version, and I would like to share it with you. > (note: I was not able to gunzip a buffer variable, so I saved the content > into a file and loaded it from there, sorry but my perl-foo is really NULL) > > This is a POC that works for ghc, but of course it needs to be changed to > selectively allow gzipped content via configuration switch, or by detecting > the type of received stream, or something else
Hi, thanks, I'll look at this. Note that this is a server side bug: it should not send compressed data if request doesn't specify "Accept-Encoging: gzip"