There was an error while loading. Please reload this page.
.js
.mjs
1 parent 2016bc5 commit 82c0b53Copy full SHA for 82c0b53
1 file changed
Lib/mimetypes.py
@@ -427,8 +427,8 @@ def _default_mime_types():
427
# Make sure the entry with the preferred file extension for a particular mime type
428
# appears before any others of the same mimetype.
429
types_map = _types_map_default = {
430
- '.js' : 'application/javascript',
431
- '.mjs' : 'application/javascript',
+ '.js' : 'text/javascript',
+ '.mjs' : 'text/javascript',
432
'.json' : 'application/json',
433
'.webmanifest': 'application/manifest+json',
434
'.doc' : 'application/msword',
0 commit comments