From caba92d9370a230d561675284979cb888964d9da Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 18 Feb 2010 11:56:41 +0100 Subject: [PATCH] split only once --- gunicorn/http/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/request.py b/gunicorn/http/request.py index 38464f30f..fc2fcb61c 100644 --- a/gunicorn/http/request.py +++ b/gunicorn/http/request.py @@ -110,7 +110,7 @@ def read(self): 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',