FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add .cjs mimetype to common_types · python/cpython@2ba7fc6 · GitHub

Repository navigation

Commit 2ba7fc6

Browse files
committed
Add .cjs mimetype to common_types
Adds .cjs mimetype of `text/javascript` for CommonJS modules to common_types. See here for more information: https://nodejs.org/api/modules.html#enabling
1 parent 1ae9004 commit 2ba7fc6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎Lib/mimetypes.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ def _default_mime_types():
689689
'.pict': 'image/pict',
690690
'.pct' : 'image/pict',
691691
'.pic' : 'image/pict',
692+
'.cjs' : 'text/javascript',
692693
'.xul' : 'text/xul',
693694
}
694695

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add .cjs extension to common_types to give CommonJS modules a mimetype of
2+
"text/javascript"

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL