[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 404 with Content-Encoding gzip
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Mon, 22 Oct 2018 17:55:46 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 13039
- References: <87k1ma3hzm.fsf@blah.blah>
In [emacs-w3m:13038]
On Mon, 22 Oct 2018 12:09:01 +1100, Kevin Ryde wrote:
> The Project Gutenberg 404 page is sent "Content-Encoding: gzip",
> https://www.gutenberg.org/no-such-page-exists
> Current cvs emacs-w3m displays the raw gzip bytes.
Because the gzipped data is corrupted --- /usr/bin/gzip says:
unexpected end of file
There seems to be no way to make zlib-decompress-region work for
such bad data, so I made a fix in w3m-decode-encoded-contents so
as to use the conventional way if zlib-decompress-region returns
nil.
Thanks for reporting.
Regards,