From: Myles Borins Date: Thu, 20 Dec 2018 20:28:28 +0000 (-0500) Subject: [3.6] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10976) X-Git-Tag: v3.6.8~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70db385944ecf2ceed10ed7d91fce68399f9ca8a;p=thirdparty%2FPython%2Fcpython.git [3.6] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10976) (cherry picked from commit 0854b92cd2) --- diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 5a7e6493bf51..7321354ccc13 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -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 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.