gh-87710: Update mime type for `.ai` (#141239)
This commit is contained in:
@@ -472,7 +472,9 @@ mimetypes
|
||||
* Add ``application/node`` MIME type for ``.cjs`` extension. (Contributed by John Franey in :gh:`140937`.)
|
||||
* Add ``application/toml``. (Contributed by Gil Forcada in :gh:`139959`.)
|
||||
* Rename ``application/x-texinfo`` to ``application/texinfo``.
|
||||
(Contributed by Charlie Lin in :gh:`140165`)
|
||||
(Contributed by Charlie Lin in :gh:`140165`.)
|
||||
* Changed the MIME type for ``.ai`` files to ``application/pdf``.
|
||||
(Contributed by Stan Ulbrych in :gh:`141239`.)
|
||||
|
||||
|
||||
mmap
|
||||
|
||||
@@ -497,9 +497,9 @@ def _default_mime_types():
|
||||
'.oda' : 'application/oda',
|
||||
'.ogx' : 'application/ogg',
|
||||
'.pdf' : 'application/pdf',
|
||||
'.ai' : 'application/pdf',
|
||||
'.p7c' : 'application/pkcs7-mime',
|
||||
'.ps' : 'application/postscript',
|
||||
'.ai' : 'application/postscript',
|
||||
'.eps' : 'application/postscript',
|
||||
'.texi' : 'application/texinfo',
|
||||
'.texinfo': 'application/texinfo',
|
||||
|
||||
@@ -229,6 +229,7 @@ class MimeTypesTestCase(unittest.TestCase):
|
||||
("application/octet-stream", ".bin"),
|
||||
("application/gzip", ".gz"),
|
||||
("application/ogg", ".ogx"),
|
||||
("application/pdf", ".pdf"),
|
||||
("application/postscript", ".ps"),
|
||||
("application/texinfo", ".texi"),
|
||||
("application/toml", ".toml"),
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
:mod:`mimetypes`: Update mime type for ``.ai`` files to ``application/pdf``.
|
||||
Reference in New Issue
Block a user