Skip to content

Commit 569f17c

Browse files
Merge pull request #15654 from huchenlei/mime
Add correct mimetype for .mjs files
2 parents a184e5d + 3d3fc81 commit 569f17c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/ui.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
# this is a fix for Windows users. Without it, javascript files will be served with text/html content-type and the browser will not show any UI
3939
mimetypes.init()
4040
mimetypes.add_type('application/javascript', '.js')
41+
mimetypes.add_type('application/javascript', '.mjs')
4142

4243
# Likewise, add explicit content-type header for certain missing image types
4344
mimetypes.add_type('image/webp', '.webp')

0 commit comments

Comments
 (0)