[Top][All Lists]

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

Re: [Lynx-dev] Re: media types

From: Thomas Dickey
Subject: Re: [Lynx-dev] Re: media types
Date: Sat, 27 Dec 2008 12:45:45 -0500 (EST)

On Sat, 27 Dec 2008, Thorsten Glaser wrote:

Thomas Dickey dixit:

someone reported a problem with a site that was sending gzip where it
stated deflate - seems that was about a year ago.

Couldn’t that be special-cased? Check if a stream advertised as “deflate”

not easily: we'd have to save the data that wasn't decoded somewhere (since we're not even looking at the header) and try different decompression algorithms on it.

I only knew about that because I captured the file's contents and experimented with it.

starts with 1F 08, handle it as gzip instead. Maybe warn the user, but
that warning would be at least as annoying as the google invalid cookies…

1F-08 ?  (I'm looking at a gzip'd file beginning 1F-8B).

I do have a to-do item for diffstat to try to guess the decompression
type from piped input...

I could try to dig out the site unless you have it handy, then hack some
code to do that, if you desire.

I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt

Lynx-dev mailing list

Thomas E. Dickey

reply via email to

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