Skip to content

Commit c74cba1

Browse files
clin1234dependabot[bot]benediktjohanneshugovkblurb-it[bot]
authored
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>
1 parent 10f950c commit c74cba1

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ mimetypes
10451045
(Contributed by Benedikt Johannes, Charlie Lin, Foolbar, Gil Forcada and
10461046
John Franey
10471047
in :gh:`144217`, :gh:`145720`, :gh:`140937`, :gh:`139959`, :gh:`145698`,
1048-
:gh:`145718` and :gh:`144213`.)
1048+
:gh:`145718`, :gh:`145918`, and :gh:`144213`.)
10491049
* Rename ``application/x-texinfo`` to ``application/texinfo``.
10501050
(Contributed by Charlie Lin in :gh:`140165`.)
10511051
* Changed the MIME type for ``.ai`` files to ``application/pdf``.

Lib/mimetypes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,14 @@ def _default_mime_types():
599599
'.ra' : 'audio/x-pn-realaudio',
600600
'.wav' : 'audio/vnd.wave',
601601
'.weba' : 'audio/webm',
602+
'.ttc' : 'font/collection',
602603
'.otf' : 'font/otf',
603604
'.ttf' : 'font/ttf',
604605
'.woff' : 'font/woff',
605606
'.woff2' : 'font/woff2',
607+
'.hjif' : 'haptics/hjif',
608+
'.hmpg' : 'haptics/hmpg',
609+
'.ivs' : 'haptics/ivs',
606610
'.avif' : 'image/avif',
607611
'.bmp' : 'image/bmp',
608612
'.emf' : 'image/emf',
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add MIME types for TTC and Haptics formats to :mod:`mimetypes`.
2+
(Contributed by Charlie Lin in :gh:`145918`.)

0 commit comments

Comments
 (0)