]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.6] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10976)
authorMyles Borins <myles.borins@gmail.com>
Thu, 20 Dec 2018 20:28:28 +0000 (15:28 -0500)
committerNed Deily <nad@python.org>
Thu, 20 Dec 2018 20:28:28 +0000 (15:28 -0500)
(cherry picked from commit 0854b92cd2)

Lib/mimetypes.py
Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst [new file with mode: 0644]

index 5a7e6493bf51ff8dee93a9af4abf649a035f73a1..7321354ccc1356703e9a218538d06aedd714538c 100644 (file)
@@ -450,6 +450,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 (file)
index 0000000..eacba28
--- /dev/null
@@ -0,0 +1 @@
+Associate ``.mjs`` file extension with ``application/javascript`` MIME Type.