You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mime database contains types with same glob patterns, mimetype always pick up the first type and doesn't use magics. It broke this recommendation.
According to the spec glob conflicts should be resolved by inspecting the magic data:
If a matching pattern is provided by two or more MIME types, applications SHOULD not rely on one of them. They are instead supposed to use magic data (see below) to detect the actual MIME type. This is for instance required to deal with container formats like Ogg or AVI, that map various video and/or audio-encoded data to one extension.
When mime database contains types with same glob patterns, mimetype always pick up the first type and doesn't use magics. It broke this recommendation.
Example database content:
Example.foo
After updating MIME database mimetype should return "text/x-foo":
And if globs disabled:
The text was updated successfully, but these errors were encountered: