Skip to content
6 changes: 5 additions & 1 deletion Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,12 @@ mimetypes
- ``application/vnd.ms-cab-compressed`` for ``.cab`` extension
- ``application/vnd.ms-htmlhelp`` for ``.chm`` extension
- ``application/vnd.ms-officetheme`` for ``.thmx`` extension
- ``font/collection`` for ``.ttc`` extension
- ``haptics/ivs`` for ``.ivs`` extension
- ``haptics/hjif`` for ``.hjif`` extension
- ``haptics/hmpg`` for ``.hmpg`` extension

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

* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
* Rename ``application/x-texinfo`` to ``application/texinfo``.
Expand Down
4 changes: 4 additions & 0 deletions Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,14 @@ def _default_mime_types():
'.ra' : 'audio/x-pn-realaudio',
'.wav' : 'audio/vnd.wave',
'.weba' : 'audio/webm',
'.ttc' : 'font/collection',
'.otf' : 'font/otf',
'.ttf' : 'font/ttf',
'.woff' : 'font/woff',
'.woff2' : 'font/woff2',
'.hjif' : 'haptics/hjif',
'.hmpg' : 'haptics/hmpg',
'.ivs' : 'haptics/ivs',
'.avif' : 'image/avif',
'.bmp' : 'image/bmp',
'.emf' : 'image/emf',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Add the following to ``mimetypes``:

``font/collection``
``haptics/ivs``
``haptics/hjif``
``haptics/hmpg``

(Contributed by Charlie Lin in :gh:`145918`.)
Loading