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:
Charlie Lin 2026-03-23 16:16:41 -04:00 committed by GitHub
parent a57209eb98
commit 821581adae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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',

View file

@ -0,0 +1 @@
Add ``application/efi`` MIME type to :mod:`mimetypes`.