summaryrefslogtreecommitdiff
path: root/paste/httpserver.py
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2007-01-06 02:34:02 +0000
committerpjenvey <devnull@localhost>2007-01-06 02:34:02 +0000
commitbc4c35a4d37edef2254bf6dce26a61efcb895b1a (patch)
tree3cd94de032d741915122df64a17e20bbfdcfe4b6 /paste/httpserver.py
parent5b09b4a2e7af152a14c1576d250b6e2c0762209e (diff)
downloadpaste-bc4c35a4d37edef2254bf6dce26a61efcb895b1a.tar.gz
normpath returns '/' for the root, avoid reapplying the end slash in that case
Diffstat (limited to 'paste/httpserver.py')
-rwxr-xr-xpaste/httpserver.py2
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