zone117x / MimeMapping

Constants for (almost) all MIME types and file extensions, and method to determine MIME type of a file name.
MIT License
73 stars 19 forks source link

Parity with System.Web.MimeMapping.GetMimeMapping for some MS extensions #129

Open ipetrouchtchak-fi opened 3 weeks ago

ipetrouchtchak-fi commented 3 weeks ago

Would it possible to add mappings for some of the missing Microsoft extensions, which are found in System.Web.MimeMapping: https://github.com/microsoft/referencesource/blob/master/System.Web/MimeMapping.cs

AddMapping(".jfif", "image/pjpeg");
AddMapping(".mht", "message/rfc822");
AddMapping(".mhtml", "message/rfc822");
AddMapping(".one", "application/onenote");
AddMapping(".vdx", "application/vnd.ms-visio.viewer");
AddMapping(".vsx", "application/vnd.visio");
AddMapping(".vtx", "application/vnd.visio");
...
viceice commented 3 weeks ago

feel free to open a PR 🤗

ipetrouchtchak-fi commented 5 days ago

Opened a PR on mime-db: https://github.com/jshttp/mime-db/issues/335#issuecomment-2322408562