mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Set MIME type for javascript files
This commit is contained in:
parent
06292a45f3
commit
70aed820da
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue