urlmon: Implement FindMimeFromData
Shachar Shemesh
wine-devel at shemesh.biz
Fri Mar 19 04:17:37 CST 2004
Kevin Koltzau wrote:
>IE overrides MIME types for more then just ambiguous types, to quote one test mentioned in the appendix
>
>"If the server-provided MIME type is either known or ambiguous, the buffer is scanned in an attempt to verify
>or obtain a MIME type from the actual content. If a positive match is found (one of the hard-coded tests succeeded),
>this MIME type is immediately returned as the final determination, overriding the server-provided MIME type (this type
>of behavior is necessary to identify a .gif file being sent as text/html)."
>
>On Thursday 18 March 2004 02:58 pm, Juan Lang wrote:
>
>
>>(Apologies for the lack of quoting.) According to
>>that appendix, IE should only be overriding MIME types
>>that are text/plain, application/octet-stream, or
>>empty. It does so because it considers these
>>"ambiguous". I think your patch may be useful for the
>>small set of types you suggest, but shouldn't you only
>>override in these cases too?
>>
>>
>
>
>
I really think we should not immitate the Windows behaviour here. It is
causing nothing but security problems. If the server reports a MIME
type, just use that type.
Shachar
--
Shachar Shemesh
Lingnu Open Systems Consulting
http://www.lingnu.com/
More information about the wine-devel
mailing list