Skip to content

Commit c56abae

Browse files
committed
Revert order of JavaScript MIME types
1 parent 0be5045 commit c56abae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/mimetypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ def _default_mime_types():
484484
# Make sure the entry with the preferred file extension for a particular mime type
485485
# appears before any others of the same mimetype.
486486
types_map = _types_map_default = {
487+
'.js' : 'text/javascript',
488+
'.mjs' : 'text/javascript',
487489
'.dcm' : 'application/dicom',
488490
'.epub' : 'application/epub+zip',
489491
'.gz' : 'application/gzip',
@@ -665,8 +667,6 @@ def _default_mime_types():
665667
'.gff3' : 'text/gff3',
666668
'.html' : 'text/html',
667669
'.htm' : 'text/html',
668-
'.js' : 'text/javascript',
669-
'.mjs' : 'text/javascript',
670670
'.cnd' : 'text/jcr-cnd',
671671
'.md' : 'text/markdown',
672672
'.markdown': 'text/markdown',

0 commit comments

Comments
 (0)