summaryrefslogtreecommitdiff
path: root/paste/httpserver.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-01-05 17:04:22 +0000
committerianb <devnull@localhost>2007-01-05 17:04:22 +0000
commit5b09b4a2e7af152a14c1576d250b6e2c0762209e (patch)
treecfea16711fba30388e9f06273f24b88a9709c064 /paste/httpserver.py
parent36efb4355ee8ce598aa8ca1c4b115d745fd62cee (diff)
downloadpaste-5b09b4a2e7af152a14c1576d250b6e2c0762209e.tar.gz
Not that good fixup of a problem where the end slash is lost under Paste's HTTP server
Diffstat (limited to 'paste/httpserver.py')
-rwxr-xr-xpaste/httpserver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/httpserver.py b/paste/httpserver.py
index a88fab6..9407e4f 100755
--- a/paste/httpserver.py
+++ b/paste/httpserver.py
@@ -163,7 +163,11 @@ class WSGIHandlerMixin:
(_, _, path, query, fragment) = urlparse.urlsplit(self.path)
path = urllib.unquote(path)
+ endslash = path.endswith('/')
path = posixpath.normpath(path)
+ if endslash:
+ # Put the slash back...
+ path += '/'
(server_name, server_port) = self.server.server_address
rfile = self.rfile