From e9a3f2dd593db749267c6906822fa4ec83f20f18 Mon Sep 17 00:00:00 2001 From: meeb Date: Mon, 25 Jul 2022 16:37:47 +1000 Subject: [PATCH] url prefix override typo in some environments, related to #255 --- tubesync/tubesync/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/tubesync/wsgi.py b/tubesync/tubesync/wsgi.py index f397227..71c6100 100644 --- a/tubesync/tubesync/wsgi.py +++ b/tubesync/tubesync/wsgi.py @@ -21,5 +21,5 @@ def application(environ, start_response): environ['SCRIPT_NAME'] = script_name path_info = environ['PATH_INFO'] if path_info.startswith(script_name) and not path_info.startswith(static_url): - environ['PATH_INFO'] = path_info[len(script_name):] + environ['PATH_INFO'] = path_info[len(script_name) - 1:] return _application(environ, start_response)