diff options
| author | pjenvey <devnull@localhost> | 2007-01-06 02:34:02 +0000 |
|---|---|---|
| committer | pjenvey <devnull@localhost> | 2007-01-06 02:34:02 +0000 |
| commit | bc4c35a4d37edef2254bf6dce26a61efcb895b1a (patch) | |
| tree | 3cd94de032d741915122df64a17e20bbfdcfe4b6 /paste/httpserver.py | |
| parent | 5b09b4a2e7af152a14c1576d250b6e2c0762209e (diff) | |
| download | paste-bc4c35a4d37edef2254bf6dce26a61efcb895b1a.tar.gz | |
normpath returns '/' for the root, avoid reapplying the end slash in that case
Diffstat (limited to 'paste/httpserver.py')
| -rwxr-xr-x | paste/httpserver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpserver.py b/paste/httpserver.py index 9407e4f..ecd8a1e 100755 --- a/paste/httpserver.py +++ b/paste/httpserver.py @@ -165,7 +165,7 @@ class WSGIHandlerMixin: path = urllib.unquote(path) endslash = path.endswith('/') path = posixpath.normpath(path) - if endslash: + if endslash and path != '/': # Put the slash back... path += '/' (server_name, server_port) = self.server.server_address |
