]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Revert "Parse percent escapes in the path component of the uri, to be more"
authorBen Darnell <bdarnell@beaker.local>
Fri, 9 Jul 2010 19:57:01 +0000 (12:57 -0700)
committerBen Darnell <bdarnell@beaker.local>
Fri, 9 Jul 2010 19:57:01 +0000 (12:57 -0700)
This reverts commit 7b80c2f4db226d6fa3a7f3dfa59277da1d642f91.

URI spec requires that '/' and '%2F' be distinguishable, so it's incorrect
to escape at this level.  The next commit will instead unquote captured
groups before passing them to get()/post() in web.py

tornado/httpserver.py

index 4cd4c3f732efef67b4051e785326735dadaec569..ad7ab077aec6124396921d0a0298f0cd6928bf9f 100644 (file)
@@ -26,7 +26,6 @@ import logging
 import os
 import socket
 import time
-import urllib
 import urlparse
 
 try:
@@ -399,8 +398,7 @@ class HTTPRequest(object):
         self._finish_time = None
 
         scheme, netloc, path, query, fragment = urlparse.urlsplit(uri)
-        self.raw_path = path
-        self.path = urllib.unquote(path)
+        self.path = path
         self.query = query
         arguments = cgi.parse_qs(query)
         self.arguments = {}