Skip to content

Commit 88aeff8

Browse files
pythongh-87710: Update mime type for .ai (python#141239)
1 parent f963864 commit 88aeff8

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ mimetypes
472472
* Add ``application/node`` MIME type for ``.cjs`` extension. (Contributed by John Franey in :gh:`140937`.)
473473
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
474474
* Rename ``application/x-texinfo`` to ``application/texinfo``.
475-
(Contributed by Charlie Lin in :gh:`140165`)
475+
(Contributed by Charlie Lin in :gh:`140165`.)
476+
* Changed the MIME type for ``.ai`` files to ``application/pdf``.
477+
(Contributed by Stan Ulbrych in :gh:`141239`.)
476478

477479

478480
mmap

Lib/mimetypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ def _default_mime_types():
497497
'.oda' : 'application/oda',
498498
'.ogx' : 'application/ogg',
499499
'.pdf' : 'application/pdf',
500+
'.ai' : 'application/pdf',
500501
'.p7c' : 'application/pkcs7-mime',
501502
'.ps' : 'application/postscript',
502-
'.ai' : 'application/postscript',
503503
'.eps' : 'application/postscript',
504504
'.texi' : 'application/texinfo',
505505
'.texinfo': 'application/texinfo',

Lib/test/test_mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def check_extensions():
229229
("application/octet-stream", ".bin"),
230230
("application/gzip", ".gz"),
231231
("application/ogg", ".ogx"),
232+
("application/pdf", ".pdf"),
232233
("application/postscript", ".ps"),
233234
("application/texinfo", ".texi"),
234235
("application/toml", ".toml"),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:mod:`mimetypes`: Update mime type for ``.ai`` files to ``application/pdf``.

0 commit comments

Comments
 (0)