From: Ben Darnell Date: Fri, 9 Jul 2010 19:57:01 +0000 (-0700) Subject: Revert "Parse percent escapes in the path component of the uri, to be more" X-Git-Tag: v1.0.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=455eb75b18afbe625c8a2fe97c1a9888ef09ed50;p=thirdparty%2Ftornado.git Revert "Parse percent escapes in the path component of the uri, to be more" 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 --- diff --git a/tornado/httpserver.py b/tornado/httpserver.py index 4cd4c3f73..ad7ab077a 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -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 = {}