mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-20 16:10:58 +00:00
Fix content type for app.js
This commit is contained in:
parent
e45d27d9ce
commit
f1f0753cd4
2 changed files with 3 additions and 3 deletions
|
@ -302,9 +302,9 @@ def create_app(args):
|
|||
if args.disable_web_ui:
|
||||
abort(404)
|
||||
|
||||
return render_template("app.js.template",
|
||||
return Response(render_template("app.js.template",
|
||||
url_prefix=args.url_prefix,
|
||||
get_api_key_link=args.get_api_key_link)
|
||||
get_api_key_link=args.get_api_key_link), content_type='application/javascript; charset=utf-8')
|
||||
|
||||
@bp.get("/languages")
|
||||
@limiter.exempt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue