◐ Shell
clean mode source ↗

bpo-34875:Change .js and .mjs mime to text/javascript by 180909 · Pull Request #30740 · python/cpython

Expand Up @@ -429,8 +429,6 @@ 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', '.json' : 'application/json', '.webmanifest': 'application/manifest+json', '.doc' : 'application/msword', Expand Down Expand Up @@ -549,6 +547,8 @@ def _default_mime_types(): '.csv' : 'text/csv', '.html' : 'text/html', '.htm' : 'text/html', '.js' : 'text/javascript', '.mjs' : 'text/javascript', '.n3' : 'text/n3', '.txt' : 'text/plain', '.bat' : 'text/plain', Expand Down