[Python-checkins] bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464)

Andrew Svetlov webhook-mailer at python.org
Tue Oct 9 00:44:05 EDT 2018


https://github.com/python/cpython/commit/199a280af540e3194405eb250ca1a8d487f6a4f7
commit: 199a280af540e3194405eb250ca1a8d487f6a4f7
branch: master
author: travisoneill <travis.h.oneill at gmail.com>
committer: Andrew Svetlov <andrew.svetlov at gmail.com>
date: 2018-10-09T07:43:58+03:00
summary:

bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464)

files:
A Misc/NEWS.d/next/Library/2018-09-26-14-09-34.bpo-34758.bRBfAi.rst
M Lib/mimetypes.py

diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index d5006fa4d316..bc647115b18e 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -515,6 +515,7 @@ def _default_mime_types():
         '.txt'    : 'text/plain',
         '.ustar'  : 'application/x-ustar',
         '.vcf'    : 'text/x-vcard',
+        '.wasm'   : 'application/wasm',
         '.wav'    : 'audio/x-wav',
         '.webm'   : 'video/webm',
         '.wiz'    : 'application/msword',
diff --git a/Misc/NEWS.d/next/Library/2018-09-26-14-09-34.bpo-34758.bRBfAi.rst b/Misc/NEWS.d/next/Library/2018-09-26-14-09-34.bpo-34758.bRBfAi.rst
new file mode 100644
index 000000000000..82e38aa6e158
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-09-26-14-09-34.bpo-34758.bRBfAi.rst
@@ -0,0 +1,2 @@
+Add .wasm -> application/wasm to list of recognized file types and content
+type headers



More information about the Python-checkins mailing list