gh-145917: Add MIME types for TTC and Haptics formats (#145918)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Benedikt Johannes <benedikt.johannes.hofer@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
Charlie Lin 2026-05-04 14:02:50 -04:00 committed by GitHub
parent 10f950c9bb
commit c74cba16a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -1045,7 +1045,7 @@ mimetypes
(Contributed by Benedikt Johannes, Charlie Lin, Foolbar, Gil Forcada and
John Franey
in :gh:`144217`, :gh:`145720`, :gh:`140937`, :gh:`139959`, :gh:`145698`,
:gh:`145718` and :gh:`144213`.)
:gh:`145718`, :gh:`145918`, and :gh:`144213`.)
* Rename ``application/x-texinfo`` to ``application/texinfo``.
(Contributed by Charlie Lin in :gh:`140165`.)
* Changed the MIME type for ``.ai`` files to ``application/pdf``.

View file

@ -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',

View file

@ -0,0 +1,2 @@
Add MIME types for TTC and Haptics formats to :mod:`mimetypes`.
(Contributed by Charlie Lin in :gh:`145918`.)