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 c06a8bb commit 2d96ba1Copy full SHA for 2d96ba1
Lib/mimetypes.py
@@ -475,6 +475,8 @@ def _default_mime_types():
475
# Make sure the entry with the preferred file extension for a particular mime type
476
# appears before any others of the same mimetype.
477
types_map = _types_map_default = {
478
+ '.js' : 'text/javascript',
479
+ '.mjs' : 'text/javascript',
480
'.dcm' : 'application/dicom',
481
'.epub' : 'application/epub+zip',
482
'.gz' : 'application/gzip',
@@ -652,8 +654,6 @@ def _default_mime_types():
652
654
'.gff3' : 'text/gff3',
653
655
'.html' : 'text/html',
656
'.htm' : 'text/html',
- '.js' : 'text/javascript',
- '.mjs' : 'text/javascript',
657
'.cnd' : 'text/jcr-cnd',
658
'.md' : 'text/markdown',
659
'.markdown': 'text/markdown',
0 commit comments