[Python-checkins] [3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)

Ned Deily webhook-mailer at python.org
Thu Dec 20 15:26:07 EST 2018


https://github.com/python/cpython/commit/c7b7a43cd8964a90669bb37735cdafc5b0ec60cc
commit: c7b7a43cd8964a90669bb37735cdafc5b0ec60cc
branch: 3.7
author: Myles Borins <myles.borins at gmail.com>
committer: Ned Deily <nad at python.org>
date: 2018-12-20T15:26:02-05:00
summary:

[3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)

(cherry picked from commit 0854b92cd2)

files:
A Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst
M Lib/mimetypes.py

diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index c86dd6d13457..1206d8e9b6a8 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -448,6 +448,7 @@ def _default_mime_types():
         '.mht'    : 'message/rfc822',
         '.mhtml'  : 'message/rfc822',
         '.mif'    : 'application/x-mif',
+        '.mjs'    : 'application/javascript',
         '.mov'    : 'video/quicktime',
         '.movie'  : 'video/x-sgi-movie',
         '.mp2'    : 'audio/mpeg',
diff --git a/Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst b/Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst
new file mode 100644
index 000000000000..eacba28f9fd9
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst
@@ -0,0 +1 @@
+Associate ``.mjs`` file extension with ``application/javascript`` MIME Type.



More information about the Python-checkins mailing list