emacs-devel
[Top][All Lists]
Advanced

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

Re: Mysterious gzipped images


From: chad
Subject: Re: Mysterious gzipped images
Date: Wed, 7 Aug 2013 09:47:39 -0700

On 07 Aug 2013, at 07:35, Stefan Monnier <address@hidden> wrote:

>> address@hidden /tmp]$ curl -O 
>> https://icons.duckduckgo.com/i/a-z-animals.com.ico
>> address@hidden /tmp]$ file a-z-animals.com.ico 
>> a-z-animals.com.ico: gzip compressed data, max compression
> [...]
>> So it's a gzipped image!  After unzipping Emacs understands it
>> perfectly.
> 
> So curl doesn't implement Accept/Content-Encoding either?  That's weird!

I suspect that curl isn't decoding the object because it didn't
send an Accept-Encoding with the request. If you ask it to do so
(add --compress to the command line), then it decodes the object.
I'm not sure where Lars got that URL in the first place, but my
guess is that it's gzipped without an indicator due to a quirk in
how favicons are implemented.

Hope that helps,
~Chad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]