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"):
|
if fullpath.endswith(".css"):
|
||||||
# some users may have invalid mime type in the Windows registry
|
# some users may have invalid mime type in the Windows registry
|
||||||
mimetype = "text/css"
|
mimetype = "text/css"
|
||||||
|
elif fullpath.endswith(".js"):
|
||||||
|
mimetype = "application/javascript"
|
||||||
else:
|
else:
|
||||||
# autodetect
|
# autodetect
|
||||||
mimetype = None
|
mimetype = None
|
||||||
|
Loading…
Reference in New Issue
Block a user