[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: 404 with Content-Encoding gzip

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

Thanks for reporting.