mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
gh-145719: Add .efi file detection in mimetypes (#145720)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
a57209eb98
commit
821581adae
3 changed files with 3 additions and 0 deletions
|
|
@ -842,6 +842,7 @@ mimetypes
|
|||
* Add ``application/sql`` and ``application/vnd.sqlite3``.
|
||||
(Contributed by Charlie Lin in :gh:`145698`.)
|
||||
* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
|
||||
* Add ``application/efi``. (Contributed by Charlie Lin in :gh:`145720`.)
|
||||
* Add the following MIME types:
|
||||
|
||||
- ``application/vnd.ms-cab-compressed`` for ``.cab`` extension
|
||||
|
|
|
|||
|
|
@ -478,6 +478,7 @@ def _default_mime_types():
|
|||
'.js' : 'text/javascript',
|
||||
'.mjs' : 'text/javascript',
|
||||
'.dcm' : 'application/dicom',
|
||||
'.efi' : 'application/efi',
|
||||
'.epub' : 'application/epub+zip',
|
||||
'.gz' : 'application/gzip',
|
||||
'.json' : 'application/json',
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Add ``application/efi`` MIME type to :mod:`mimetypes`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue