url prefix override typo in some environments, related to #255

This commit is contained in:
meeb 2022-07-25 16:37:47 +10:00
parent 7832282545
commit e9a3f2dd59
1 changed files with 1 additions and 1 deletions

View File

@ -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)