From 7c9d0696986120f9fee9d1b00c8215e7a8d6dc0e Mon Sep 17 00:00:00 2001 From: Bradley Farias Date: Fri, 6 Oct 2017 10:25:08 -0500 Subject: [PATCH 1/5] bpo-31715 Add mimetype for extension .mjs --- Lib/mimetypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 5919b45a9b4f5f..197f993b32a8c6 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' : 'text/javascript', '.mov' : 'video/quicktime', '.movie' : 'video/x-sgi-movie', '.mp2' : 'audio/mpeg', From f54e12cb0b40a49056002ffdb5f260f484a22fe2 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Wed, 15 Aug 2018 16:25:10 -0400 Subject: [PATCH 2/5] fixup: add news --- .../next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst 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 00000000000000..5c497b246c7e59 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst @@ -0,0 +1,3 @@ +Add mimetype for file extension ``.mjs``. This will allow ``python -m`` to +support applications attempting to load ECMAScript Modules with the ``.mjs`` +extension. From f2d7b6ccd48b6d6634c0a6b33376cc8e3280b228 Mon Sep 17 00:00:00 2001 From: Bradley Farias Date: Mon, 8 Oct 2018 09:02:42 -0500 Subject: [PATCH 3/5] move text/javascript to application/javascript --- Lib/mimetypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 197f993b32a8c6..a539292671cbff 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -450,7 +450,7 @@ def _default_mime_types(): '.mht' : 'message/rfc822', '.mhtml' : 'message/rfc822', '.mif' : 'application/x-mif', - '.mjs' : 'text/javascript', + '.mjs' : 'application/javascript', '.mov' : 'video/quicktime', '.movie' : 'video/x-sgi-movie', '.mp2' : 'audio/mpeg', From e9f1fef6b01bbc0e711b695c5892a7c4ace34886 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 8 Oct 2018 21:14:23 +0300 Subject: [PATCH 4/5] Update 2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst --- .../next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 index 5c497b246c7e59..db697910e7ced3 100644 --- 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 @@ -1,3 +1 @@ -Add mimetype for file extension ``.mjs``. This will allow ``python -m`` to -support applications attempting to load ECMAScript Modules with the ``.mjs`` -extension. +Assiciate ``.mjs`` file extension with ``application/javascript`` MIME Type. From 6c38bfab3fd21c207b4184bda25e313f170193fc Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 8 Oct 2018 21:33:48 +0300 Subject: [PATCH 5/5] Update 2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst Fix typo --- .../next/Library/2018-08-15-16-22-30.bpo-31715.Iw8jS8.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index db697910e7ced3..eacba28f9fd987 100644 --- 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 @@ -1 +1 @@ -Assiciate ``.mjs`` file extension with ``application/javascript`` MIME Type. +Associate ``.mjs`` file extension with ``application/javascript`` MIME Type.