forked from rDrama/rDrama
make a line of code a little neater (thanks @everyone)
parent
ddeba62aeb
commit
24c44132d8
|
@ -92,7 +92,7 @@ def before_request():
|
||||||
g.webview = '; wv) ' in ua
|
g.webview = '; wv) ' in ua
|
||||||
g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua
|
g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua
|
||||||
|
|
||||||
if request.path.endswith('/'): request.path = request.path[:-1]
|
request.path = request.path.rstrip("/")
|
||||||
|
|
||||||
@app.after_request
|
@app.after_request
|
||||||
def after_request(response):
|
def after_request(response):
|
||||||
|
|
Loading…
Reference in New Issue