Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
Proposal:
https://github.com/mikeckennedy/content-types identifies some common MIME types missing from the defaultmimetypes list.
Runninghttps://github.com/mikeckennedy/content-types/blob/main/samples/compare_to_builtin.py on Python 3.13 to identify some missing ones:
❯uv run --python 3.13 --with content-types https://raw.githubusercontent.com/mikeckennedy/content-types/refs/heads/main/samples/compare_to_builtin.pyCompare types in mimetypes vs content-types.There are 5 types where mimetypes and content-types disagreemimetypes: .exe application/octet-stream, content-types: .exe application/x-msdownloadmimetypes: .xml text/xml, content-types: .xml application/xmlmimetypes: .wav audio/x-wav, content-types: .wav audio/wavmimetypes: .dll application/octet-stream, content-types: .dll application/x-msdownloadmimetypes: .obj application/octet-stream, content-types: .obj model/objThere are 0 types in mimetypes that are not in content-typesThere are 31 types in content-types that are not in mimetypesin_ct_only.xlsx -> application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.gz -> application/gzip.ods -> application/vnd.oasis.opendocument.spreadsheet.docx -> application/vnd.openxmlformats-officedocument.wordprocessingml.document.gltf -> model/gltf+json.rar -> application/vnd.rar.php -> application/x-httpd-php.7z -> application/x-7z-compressed.ogv -> video/ogg.odg -> application/vnd.oasis.opendocument.graphics.weba -> audio/webm.rpm -> application/x-rpm.odp -> application/vnd.oasis.opendocument.presentation.deb -> application/x-debian-package.epub -> application/epub+zip.woff2 -> font/woff2.apk -> application/vnd.android.package-archive.glb -> model/gltf-binary.map -> application/json.tgz -> application/gzip.ttf -> font/ttf.otf -> font/otf.wmv -> video/x-ms-wmv.odt -> application/vnd.oasis.opendocument.text.ogg -> audio/ogg.pptx -> application/vnd.openxmlformats-officedocument.presentationml.presentation.m4a -> audio/mp4.m4v -> video/mp4.flac -> audio/flac.woff -> font/woff.stl -> model/stl
With 3.14.0a4:
❯uv run --python 3.14 --with content-types https://raw.githubusercontent.com/mikeckennedy/content-types/refs/heads/main/samples/compare_to_builtin.pyCompare types in mimetypes vs content-types.There are 5 types where mimetypes and content-types disagreemimetypes: .exe application/octet-stream, content-types: .exe application/x-msdownloadmimetypes: .obj application/octet-stream, content-types: .obj model/objmimetypes: .xml text/xml, content-types: .xml application/xmlmimetypes: .wav audio/x-wav, content-types: .wav audio/wavmimetypes: .dll application/octet-stream, content-types: .dll application/x-msdownloadThere are 13 types in mimetypes that are not in content-types.wmf : image/wmf.mka : audio/matroska.fits: image/fits.g3 : image/g3fax.eot : application/vnd.ms-fontobject.emf : image/emf.jp2 : image/jp2.jpm : image/jpm.jpx : image/jpx.t38 : image/t38.mk3d: video/matroska-3d.mkv : video/matroska.tfx : image/tiff-fxThere are 27 types in content-types that are not in mimetypesin_ct_only.m4v -> video/mp4.wmv -> video/x-ms-wmv.odt -> application/vnd.oasis.opendocument.text.deb -> application/x-debian-package.odp -> application/vnd.oasis.opendocument.presentation.gz -> application/gzip.xlsx -> application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.map -> application/json.apk -> application/vnd.android.package-archive.gltf -> model/gltf+json.php -> application/x-httpd-php.glb -> model/gltf-binary.rpm -> application/x-rpm.epub -> application/epub+zip.odg -> application/vnd.oasis.opendocument.graphics.docx -> application/vnd.openxmlformats-officedocument.wordprocessingml.document.ods -> application/vnd.oasis.opendocument.spreadsheet.7z -> application/x-7z-compressed.stl -> model/stl.m4a -> audio/mp4.ogv -> video/ogg.flac -> audio/flac.rar -> application/vnd.rar.tgz -> application/gzip.pptx -> application/vnd.openxmlformats-officedocument.presentationml.presentation.ogg -> audio/ogg.weba -> audio/webm
Let's add some of these, but check withIANA and relevant specs. For example,.wav is inRFC 2361 asaudio/vnd.wave notaudio/wav. We currently have it asaudio/x-wav.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response