[imps] content type sniffing - stream length

Ian Hickson ian at hixie.ch
Fri Jul 11 19:50:13 PDT 2008


On Fri, 11 Jul 2008, Ryan King wrote:
>
> "2.7.4 Content-Type sniffing: unknown type" says:
> 
>   2. If pattern length is smaller than stream length then skip this row.
> 
> ..which doesn't seem to make sense, since the streams will likely be 512 
> bytes long, and the patterns are a handful of bytes each. I suspect that 
> the intent was the opposite:
> 
>   2. If stream length is smaller than pattern length then skip this row.

Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the Implementors mailing list