Comment 5 for bug 285831

Revision history for this message
Harald Sitter (apachelogger) wrote :

The spec says:
"glob elements have a pattern attribute. Any file whose name matches this pattern will be given this MIME type (subject to conflicting rules in other files, of course)."

Which I read as: FILE.DOC is always application/msword unless there is sufficient proof it is something else.

"magic elements contain a list of match elements, any of which may match, and an optional priority attribute for all of the contained rules. Low numbers should be used for more generic types (such as 'gzip compressed data') and higher values for specific subtypes (such as a word processor format that happens to use gzip to compress the file). The default priority value is 50, and the maximum is 100."

This makes me conclude: FILE.DOC is application/msword even though there is a conflicting magic match from application/x-msi, but since that one only has a default priority of 50, FILE.DOC mustn't be of application/x-msi.