Skip to content

Added extra table for mimtype if os level check finds no match

What does this MR do?

This MR adds an extra table of mime-types to search, if the golang table (used in the function mime.TypeByExtension) fails to find a match. If this table also fails to find a match, the code falls through to the existing os level tables.

This table can be used to insert mime-types that are not in the golang table while providing consistent os independent behavior. In particular it is being used to address an inconsistency found in #1103

TODO

As an easy to understand trivial (~5 lines) of code change, I did not create unit tests, acceptance tests or documentation updates. These can be added if the reviewers wish it.

Edited by Rick Duff

Merge request reports

Loading