From 24c44132d87a4ff5c5e2bda30cda2ade5da5b70d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 23 Jul 2022 09:22:55 +0200 Subject: [PATCH] make a line of code a little neater (thanks @everyone) --- files/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index f91c1a6a01..84343beb16 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -92,7 +92,7 @@ def before_request(): 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 - if request.path.endswith('/'): request.path = request.path[:-1] + request.path = request.path.rstrip("/") @app.after_request def after_request(response):