minor fix for 500 error
parent
077e70b623
commit
25e0291b1d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue