We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 022c41d commit ab80fb8Copy full SHA for ab80fb8
1 file changed
Lib/mimetypes.py
@@ -484,6 +484,8 @@ def _default_mime_types():
484
# Make sure the entry with the preferred file extension for a particular mime type
485
# appears before any others of the same mimetype.
486
types_map = _types_map_default = {
487
+ '.js' : 'text/javascript',
488
+ '.mjs' : 'text/javascript',
489
'.dcm' : 'application/dicom',
490
'.epub' : 'application/epub+zip',
491
'.gz' : 'application/gzip',
@@ -665,8 +667,6 @@ def _default_mime_types():
665
667
'.gff3' : 'text/gff3',
666
668
'.html' : 'text/html',
669
'.htm' : 'text/html',
- '.js' : 'text/javascript',
- '.mjs' : 'text/javascript',
670
'.cnd' : 'text/jcr-cnd',
671
'.md' : 'text/markdown',
672
'.markdown': 'text/markdown',
0 commit comments