Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
8 changes: 8 additions & 0 deletions 8 Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,14 @@ mimetypes
(Contributed by John Franey in :gh:`140937`.)
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
* Add the following MIME types:

- ``application/vnd.ms-cab-compressed`` for ``.cab`` extension
- ``application/vnd.ms-htmlhelp`` for ``.chm`` extension
- ``application/vnd.ms-officetheme`` for ``.thmx`` extension

(Contributed by Charlie Lin in :gh:`145718`.)

* Rename ``application/x-texinfo`` to ``application/texinfo``.
(Contributed by Charlie Lin in :gh:`140165`.)
* Changed the MIME type for ``.ai`` files to ``application/pdf``.
Expand Down
3 changes: 3 additions & 0 deletions 3 Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,12 @@ def _default_mime_types():
'.m3u8' : 'application/vnd.apple.mpegurl',
'.dll' : 'application/vnd.microsoft.portable-executable',
'.exe' : 'application/vnd.microsoft.portable-executable',
'.cab' : 'application/vnd.ms-cab-compressed',
'.xls' : 'application/vnd.ms-excel',
'.xlb' : 'application/vnd.ms-excel',
'.eot' : 'application/vnd.ms-fontobject',
'.chm' : 'application/vnd.ms-htmlhelp',
'.thmx' : 'application/vnd.ms-officetheme',
'.ppt' : 'application/vnd.ms-powerpoint',
'.pot' : 'application/vnd.ms-powerpoint',
'.ppa' : 'application/vnd.ms-powerpoint',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a few Microsoft-specific MIME types.
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.