[Python-checkins] bpo-37305: add MIME type for Web App Manifest (GH-14199) (#15946)

Jason R. Coombs webhook-mailer at python.org
Wed Sep 11 10:13:35 EDT 2019


https://github.com/python/cpython/commit/35d0934040223f1360b2b343005fcc8ebbc65c1a
commit: 35d0934040223f1360b2b343005fcc8ebbc65c1a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Jason R. Coombs <jaraco at jaraco.com>
date: 2019-09-11T15:13:31+01:00
summary:

bpo-37305: add MIME type for Web App Manifest (GH-14199) (#15946)

* bpo-37305: add MIME type for Web App Manifest

Co-authored-by: Filip Š <filip.stamcar at hotmail.com>

files:
A Misc/NEWS.d/next/Library/2019-06-18-13-59-55.bpo-37305.fGzWlP.rst
M Lib/mimetypes.py

diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index f38005c9d295..9fdd6ebd6348 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -415,6 +415,7 @@ def _default_mime_types():
         '.js'     : 'application/javascript',
         '.mjs'    : 'application/javascript',
         '.json'   : 'application/json',
+        '.webmanifest': 'application/manifest+json',
         '.doc'    : 'application/msword',
         '.dot'    : 'application/msword',
         '.wiz'    : 'application/msword',
diff --git a/Misc/NEWS.d/next/Library/2019-06-18-13-59-55.bpo-37305.fGzWlP.rst b/Misc/NEWS.d/next/Library/2019-06-18-13-59-55.bpo-37305.fGzWlP.rst
new file mode 100644
index 000000000000..5bd2cd4d30af
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-06-18-13-59-55.bpo-37305.fGzWlP.rst
@@ -0,0 +1,2 @@
+Add .webmanifest -> application/manifest+json to list of recognized file types
+and content type headers



More information about the Python-checkins mailing list