Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _default_mime_types():
'.jpe' : 'image/jpeg',
'.jpeg' : 'image/jpeg',
'.jpg' : 'image/jpeg',
'.js' : 'application/javascript',
'.js' : 'text/javascript',
'.json' : 'application/json',
'.ksh' : 'text/plain',
'.latex' : 'application/x-latex',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Change mimetype for file extension ``.js`` to ``test/javascript``. This is currently the recommended mimetype in the whatwg HTML spec

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/test/text/


https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages