mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-97646: Change .js and .mjs files mimetype to conform to RFC 9239 (#97934)
This commit is contained in:
parent
3108fc1c16
commit
2a168355f0
2 changed files with 3 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue