Skip to content

Commit c7b7a43

Browse files
MylesBorinsned-deily
authored andcommitted
[3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)
(cherry picked from commit 0854b92)
1 parent aae2e85 commit c7b7a43

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/mimetypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ def _default_mime_types():
448448
'.mht' : 'message/rfc822',
449449
'.mhtml' : 'message/rfc822',
450450
'.mif' : 'application/x-mif',
451+
'.mjs' : 'application/javascript',
451452
'.mov' : 'video/quicktime',
452453
'.movie' : 'video/x-sgi-movie',
453454
'.mp2' : 'audio/mpeg',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Associate ``.mjs`` file extension with ``application/javascript`` MIME Type.

0 commit comments

Comments
 (0)