File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1620,8 +1620,8 @@ def init_server_extensions(self):
16201620 def init_mime_overrides (self ):
16211621 # On some Windows machines, an application has registered an incorrect
16221622 # mimetype for CSS and JavaScript in the registry.
1623- # Tornado uses this when serving .css files, causing browsers to reject the stylesheet.
1624- # We know the mimetype always needs to be text/css for css
1623+ # Tornado uses this when serving .css and .js files, causing browsers to
1624+ # reject these files. We know the mimetype always needs to be text/css for css
16251625 # and application/javascript for JS, so we override it here.
16261626 mimetypes .add_type ('text/css' , '.css' )
16271627 mimetypes .add_type ('application/javascript' , '.js' )
You can’t perform that action at this time.
0 commit comments