Skip to content

Commit d9a2aca

Browse files
MylesBorinsned-deily
authored andcommitted
[2.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10978)
(cherry picked from 0854b92)
1 parent f347c6e commit d9a2aca

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
@@ -451,6 +451,7 @@ def _default_mime_types():
451451
'.mht' : 'message/rfc822',
452452
'.mhtml' : 'message/rfc822',
453453
'.mif' : 'application/x-mif',
454+
'.mjs' : 'application/javascript',
454455
'.mov' : 'video/quicktime',
455456
'.movie' : 'video/x-sgi-movie',
456457
'.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)