Merge pull request #804 from hgiesel/mime
Set MIME type for javascript files
This commit is contained in:
commit
8ef6420cdb
@ -131,6 +131,8 @@ def allroutes(pathin):
|
||||
if fullpath.endswith(".css"):
|
||||
# some users may have invalid mime type in the Windows registry
|
||||
mimetype = "text/css"
|
||||
elif fullpath.endswith(".js"):
|
||||
mimetype = "application/javascript"
|
||||
else:
|
||||
# autodetect
|
||||
mimetype = None
|
||||
|
Loading…
Reference in New Issue
Block a user