Ian Bicking committed 160f474 Merge

Merged in mitchellrj/paste/double_slash_at_start_of_path_fix (pull request #10)

Comments (0)

Files changed (2)

   just like normal request bodies are wrapped, keeping WSGI
   applications from over-reading from the socket.
+* Fixed parsing of paths beginning with multiple forward slashes.


         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)