split only once

This commit is contained in:
benoitc 2010-02-18 11:56:41 +01:00
parent ad1bd6d313
commit caba92d937

View File

@ -110,7 +110,7 @@ class Request(object):
os.environ.get("SCRIPT_NAME", ""))
path_info = self.parser.path
if script_name:
path_info = path_info.split(script_name)[-1]
path_info = path_info.split(script_name, 1)[-1]
environ = {
"wsgi.url_scheme": 'http',