minor fix for 500 error

pull/83/head
Aevann 2022-12-27 03:37:41 +02:00
parent 077e70b623
commit 25e0291b1d
1 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,8 @@ def session_init():
@app.before_request
def before_request():
g.nonce = None
if request.host != SITE:
abort(403, "Unauthorized host provided!")
@ -36,8 +38,6 @@ def before_request():
ua = g.agent.lower()
g.nonce = None
if '; wv) ' in ua:
g.browser = 'webview'
elif ' firefox/' in ua: