From 455eb75b18afbe625c8a2fe97c1a9888ef09ed50 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Fri, 9 Jul 2010 12:57:01 -0700 Subject: [PATCH] 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 --- tornado/httpserver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 = {} -- 2.47.2