summaryrefslogtreecommitdiff
path: root/paste/httpserver.py
diff options
context:
space:
mode:
authorIan Bicking <ian@ianbicking.org>2007-01-05 17:04:22 +0000
committerIan Bicking <ian@ianbicking.org>2007-01-05 17:04:22 +0000
commitca9fc8c8f99a665ce1fad16d4a89675e813ae385 (patch)
treecfea16711fba30388e9f06273f24b88a9709c064 /paste/httpserver.py
parent4f5b7708fd35fb59e47eadfc10aefa1def58cc56 (diff)
downloadpaste-git-ca9fc8c8f99a665ce1fad16d4a89675e813ae385.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