Skip to content

Commit 821581a

Browse files
clin1234blurb-it[bot]hugovk
authored
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>
1 parent a57209e commit 821581a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ mimetypes
842842
* Add ``application/sql`` and ``application/vnd.sqlite3``.
843843
(Contributed by Charlie Lin in :gh:`145698`.)
844844
* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
845+
* Add ``application/efi``. (Contributed by Charlie Lin in :gh:`145720`.)
845846
* Add the following MIME types:
846847

847848
- ``application/vnd.ms-cab-compressed`` for ``.cab`` extension

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ def _default_mime_types():
478478
'.js' : 'text/javascript',
479479
'.mjs' : 'text/javascript',
480480
'.dcm' : 'application/dicom',
481+
'.efi' : 'application/efi',
481482
'.epub' : 'application/epub+zip',
482483
'.gz' : 'application/gzip',
483484
'.json' : 'application/json',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add ``application/efi`` MIME type to :mod:`mimetypes`.

0 commit comments

Comments
 (0)