summaryrefslogtreecommitdiffstats
path: root/Lib/mimetypes.py
diff options
context:
space:
mode:
authorNoam Cohen <noam@noam.me>2022-10-07 19:00:53 (GMT)
committerGitHub <noreply@github.com>2022-10-07 19:00:53 (GMT)
commit2a168355f0b700d4a64ccb5de750eb9d485e1cc3 (patch)
tree5aa6d3ba72fa080e9e5096f9a755de462263898b /Lib/mimetypes.py
parent3108fc1c16fdb73095dd7fcf0930004ae266f805 (diff)
downloadcpython-2a168355f0b700d4a64ccb5de750eb9d485e1cc3.zip
cpython-2a168355f0b700d4a64ccb5de750eb9d485e1cc3.tar.gz
cpython-2a168355f0b700d4a64ccb5de750eb9d485e1cc3.tar.bz2
gh-97646: Change `.js` and `.mjs` files mimetype to conform to RFC 9239 (#97934)
Diffstat (limited to 'Lib/mimetypes.py')
-rw-r--r--Lib/mimetypes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index f6c43b3..3224363 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -427,8 +427,8 @@ def _default_mime_types():
# Make sure the entry with the preferred file extension for a particular mime type
# appears before any others of the same mimetype.
types_map = _types_map_default = {
- '.js' : 'application/javascript',
- '.mjs' : 'application/javascript',
+ '.js' : 'text/javascript',
+ '.mjs' : 'text/javascript',
'.json' : 'application/json',
'.webmanifest': 'application/manifest+json',
'.doc' : 'application/msword',