From bc4c35a4d37edef2254bf6dce26a61efcb895b1a Mon Sep 17 00:00:00 2001 From: pjenvey Date: Sat, 6 Jan 2007 02:34:02 +0000 Subject: normpath returns '/' for the root, avoid reapplying the end slash in that case --- paste/httpserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste/httpserver.py') 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 -- cgit v1.2.1