Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,8 @@ 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`.)
* Add ``application/sql`` and ``application/vnd.sqlite3``.
(Contributed by Charlie Lin in :gh:`145698`.)
* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
* Rename ``application/x-texinfo`` to ``application/texinfo``.
(Contributed by Charlie Lin in :gh:`140165`.)
Expand Down
3 changes: 3 additions & 0 deletions Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ def _default_mime_types():
'.ps' : 'application/postscript',
'.eps' : 'application/postscript',
'.rtf' : 'application/rtf',
'.sql' : 'application/sql',
'.texi' : 'application/texinfo',
'.texinfo': 'application/texinfo',
'.toml' : 'application/toml',
Expand All @@ -525,6 +526,8 @@ def _default_mime_types():
'.xlsx' : 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'.docx' : 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'.rar' : 'application/vnd.rar',
'.sqlite3': 'application/vnd.sqlite3',
'.sqlite' : 'application/vnd.sqlite3',
'.wasm' : 'application/wasm',
'.7z' : 'application/x-7z-compressed',
'.bcpio' : 'application/x-bcpio',
Expand Down
2 changes: 2 additions & 0 deletions Lib/test/test_mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def check_extensions():
("application/pdf", ".pdf"),
("application/postscript", ".ps"),
("application/rtf", ".rtf"),
("application/sql", ".sql"),
("application/texinfo", ".texi"),
("application/toml", ".toml"),
("application/vnd.apple.mpegurl", ".m3u"),
Expand All @@ -246,6 +247,7 @@ def check_extensions():
("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ".xlsx"),
("application/vnd.openxmlformats-officedocument.wordprocessingml.document", ".docx"),
("application/vnd.rar", ".rar"),
("application/vnd.sqlite3", ".sqlite3")
Comment thread
clin1234 marked this conversation as resolved.
Outdated
("application/x-7z-compressed", ".7z"),
("application/x-debian-package", ".deb"),
("application/x-httpd-php", ".php"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add ``application/sql`` and ``application/vnd.sqlite3`` into ``mimetypes``
Comment thread
clin1234 marked this conversation as resolved.
Outdated
Loading