Skip to content

Commit 2d96ba1

Browse files
authored
Revert order of JavaScript MIME types
1 parent c06a8bb commit 2d96ba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/mimetypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,8 @@ def _default_mime_types():
475475
# Make sure the entry with the preferred file extension for a particular mime type
476476
# appears before any others of the same mimetype.
477477
types_map = _types_map_default = {
478+
'.js' : 'text/javascript',
479+
'.mjs' : 'text/javascript',
478480
'.dcm' : 'application/dicom',
479481
'.epub' : 'application/epub+zip',
480482
'.gz' : 'application/gzip',
@@ -652,8 +654,6 @@ def _default_mime_types():
652654
'.gff3' : 'text/gff3',
653655
'.html' : 'text/html',
654656
'.htm' : 'text/html',
655-
'.js' : 'text/javascript',
656-
'.mjs' : 'text/javascript',
657657
'.cnd' : 'text/jcr-cnd',
658658
'.md' : 'text/markdown',
659659
'.markdown': 'text/markdown',

0 commit comments

Comments
 (0)