diff options
author | ianb <devnull@localhost> | 2009-02-11 19:33:22 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2009-02-11 19:33:22 +0000 |
commit | 7b180249432d6cd5e5a448a7a52dcd35b0668bfa (patch) | |
tree | 39fd0d26e28f4ea4b07adab4e300a555ecf41626 /paste/proxy.py | |
parent | ed1e385e7da5524dca0a8e47806d2a33f6619e35 (diff) | |
download | paste-7b180249432d6cd5e5a448a7a52dcd35b0668bfa.tar.gz |
#334, handle case when PATH_INFO is empty
Diffstat (limited to 'paste/proxy.py')
-rw-r--r-- | paste/proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/proxy.py b/paste/proxy.py index 28469da..7de18c7 100644 --- a/paste/proxy.py +++ b/paste/proxy.py @@ -99,7 +99,7 @@ class Proxy(object): path_info = urllib.quote(environ['PATH_INFO']) if self.path: request_path = path_info - if request_path[0] == '/': + if request_path and request_path[0] == '/': request_path = request_path[1:] path = urlparse.urljoin(self.path, request_path) |