gh-141018: Update .exe, .dll, .rtf and .jpg mime types in mimetypes (#141023)

This commit is contained in:
Stan Ulbrych 2025-11-17 11:32:00 +00:00 committed by GitHub
parent 7800b78067
commit 31ea3f3c76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 19 deletions

View file

@ -489,8 +489,6 @@ def _default_mime_types():
'.cjs' : 'application/node',
'.bin' : 'application/octet-stream',
'.a' : 'application/octet-stream',
'.dll' : 'application/octet-stream',
'.exe' : 'application/octet-stream',
'.o' : 'application/octet-stream',
'.obj' : 'application/octet-stream',
'.so' : 'application/octet-stream',
@ -501,12 +499,15 @@ def _default_mime_types():
'.p7c' : 'application/pkcs7-mime',
'.ps' : 'application/postscript',
'.eps' : 'application/postscript',
'.rtf' : 'application/rtf',
'.texi' : 'application/texinfo',
'.texinfo': 'application/texinfo',
'.toml' : 'application/toml',
'.trig' : 'application/trig',
'.m3u' : 'application/vnd.apple.mpegurl',
'.m3u8' : 'application/vnd.apple.mpegurl',
'.dll' : 'application/vnd.microsoft.portable-executable',
'.exe' : 'application/vnd.microsoft.portable-executable',
'.xls' : 'application/vnd.ms-excel',
'.xlb' : 'application/vnd.ms-excel',
'.eot' : 'application/vnd.ms-fontobject',
@ -649,7 +650,6 @@ def _default_mime_types():
'.pl' : 'text/plain',
'.srt' : 'text/plain',
'.rtx' : 'text/richtext',
'.rtf' : 'text/rtf',
'.tsv' : 'text/tab-separated-values',
'.vtt' : 'text/vtt',
'.py' : 'text/x-python',
@ -682,11 +682,9 @@ def _default_mime_types():
# Please sort these too
common_types = _common_types_default = {
'.rtf' : 'application/rtf',
'.apk' : 'application/vnd.android.package-archive',
'.midi': 'audio/midi',
'.mid' : 'audio/midi',
'.jpg' : 'image/jpg',
'.pict': 'image/pict',
'.pct' : 'image/pict',
'.pic' : 'image/pict',