Re: NEW ISSUE: content sniffing

On Wed, Apr 1, 2009 at 9:10 AM, Mark Baker <> wrote:
> On Wed, Apr 1, 2009 at 12:01 PM, Adam Barth <> wrote:
>> The current HTTP spec contains a requirement that contradicts this
>> widespread practice.  It seems we should update this part of the spec
>> to reflect reality (and, perhaps, nudge reality into a slightly better
>> equilibrium).
> Which requirement is that?


"If and only if the media type is not given by a Content-Type field,
the recipient MAY attempt to guess the media type via inspection of
its content and/or the name extension(s) of the URI used to identify
the resource."

For example, user agents also need to sniff HTTP responses with a
Content-Type of */* in order to be compatible with existing Web


Received on Wednesday, 1 April 2009 16:20:56 UTC