Commits

Richard Mitchell  committed d5446a6

Fix handling of paths beginning with 2 slashes.

  • Participants
  • Parent commits 9495cb4

Comments (1)

Files changed (1)

File paste/httpserver.py

         argument can be used to override any settings.
         """
 
-        (scheme, netloc, path, query, fragment) = urlparse.urlsplit(self.path)
+        dummy_url = 'http://dummy%s' % (self.path,)
+        (scheme, netloc, path, query, fragment) = urlparse.urlsplit(dummy_url)
         path = urllib.unquote(path)
         endslash = path.endswith('/')
         path = posixpath.normpath(path)