mirror of
https://github.com/python/cpython.git
synced 2025-10-19 16:03:42 +00:00
gh-139958: Add TOML MIME type (#139959)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
0c17473513
commit
253534515c
3 changed files with 5 additions and 1 deletions
|
@ -500,6 +500,7 @@ def _default_mime_types():
|
||||||
'.ps' : 'application/postscript',
|
'.ps' : 'application/postscript',
|
||||||
'.ai' : 'application/postscript',
|
'.ai' : 'application/postscript',
|
||||||
'.eps' : 'application/postscript',
|
'.eps' : 'application/postscript',
|
||||||
|
'.toml' : 'application/toml',
|
||||||
'.trig' : 'application/trig',
|
'.trig' : 'application/trig',
|
||||||
'.m3u' : 'application/vnd.apple.mpegurl',
|
'.m3u' : 'application/vnd.apple.mpegurl',
|
||||||
'.m3u8' : 'application/vnd.apple.mpegurl',
|
'.m3u8' : 'application/vnd.apple.mpegurl',
|
||||||
|
@ -587,9 +588,9 @@ def _default_mime_types():
|
||||||
'.aiff' : 'audio/x-aiff',
|
'.aiff' : 'audio/x-aiff',
|
||||||
'.ra' : 'audio/x-pn-realaudio',
|
'.ra' : 'audio/x-pn-realaudio',
|
||||||
'.wav' : 'audio/vnd.wave',
|
'.wav' : 'audio/vnd.wave',
|
||||||
|
'.weba' : 'audio/webm',
|
||||||
'.otf' : 'font/otf',
|
'.otf' : 'font/otf',
|
||||||
'.ttf' : 'font/ttf',
|
'.ttf' : 'font/ttf',
|
||||||
'.weba' : 'audio/webm',
|
|
||||||
'.woff' : 'font/woff',
|
'.woff' : 'font/woff',
|
||||||
'.woff2' : 'font/woff2',
|
'.woff2' : 'font/woff2',
|
||||||
'.avif' : 'image/avif',
|
'.avif' : 'image/avif',
|
||||||
|
|
|
@ -230,6 +230,7 @@ def check_extensions():
|
||||||
("application/gzip", ".gz"),
|
("application/gzip", ".gz"),
|
||||||
("application/ogg", ".ogx"),
|
("application/ogg", ".ogx"),
|
||||||
("application/postscript", ".ps"),
|
("application/postscript", ".ps"),
|
||||||
|
("application/toml", ".toml"),
|
||||||
("application/vnd.apple.mpegurl", ".m3u"),
|
("application/vnd.apple.mpegurl", ".m3u"),
|
||||||
("application/vnd.ms-excel", ".xls"),
|
("application/vnd.ms-excel", ".xls"),
|
||||||
("application/vnd.ms-fontobject", ".eot"),
|
("application/vnd.ms-fontobject", ".eot"),
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
The ``application/toml`` mime type is now supported by :mod:`mimetypes`.
|
||||||
|
Patch by Gil Forcada.
|
Loading…
Add table
Add a link
Reference in a new issue