]> granicus.if.org Git - python/commitdiff
bpo-37305: add MIME type for Web App Manifest (#14199)
authorFilip Š <filip.stamcar@hotmail.com>
Wed, 11 Sep 2019 13:32:04 +0000 (15:32 +0200)
committerJason R. Coombs <jaraco@jaraco.com>
Wed, 11 Sep 2019 13:32:04 +0000 (14:32 +0100)
* bpo-37305: add MIME type for Web App Manifest

* bpo-37305: add news entry

* Restore indentation and sort by value

Lib/mimetypes.py
Misc/NEWS.d/next/Library/2019-06-18-13-59-55.bpo-37305.fGzWlP.rst [new file with mode: 0644]

index f38005c9d295986f05144a6958c3cacb2f411226..9fdd6ebd6348f2f2046d805e812169b7404b175a 100644 (file)
@@ -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 (file)
index 0000000..5bd2cd4
--- /dev/null
@@ -0,0 +1,2 @@
+Add .webmanifest -> application/manifest+json to list of recognized file types
+and content type headers