fix mime type for admin.js

This commit is contained in:
2020-07-05 21:39:58 +01:00
parent fa0527c6a7
commit a2a2abc7f2
4 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env python3
__version__ = "0.3.0"
__version__ = "0.3.1"
import secrets
import configparser

View File

@@ -39,7 +39,11 @@ def static_proxy(path):
bsVersion = 5
else:
bsVersion = 4
return render_template("admin.js", bsVersion=bsVersion)
return (
render_template("admin.js", bsVersion=bsVersion),
200,
{"Content-Type": "text/javascript"},
)
return app.send_static_file(path)
return (
render_template(