]> granicus.if.org Git - python/commitdiff
bpo-31715 Add mimetype for extension .mjs (#3908)
authorBradley Meck <bradley.meck@gmail.com>
Mon, 8 Oct 2018 20:04:55 +0000 (15:04 -0500)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 8 Oct 2018 20:04:55 +0000 (23:04 +0300)
Lib/mimetypes.py
Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst [new file with mode: 0644]

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