From 2c83f471fb236dc9deaefb04667d1c046018a214 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 19 Feb 2012 21:37:50 -0800 Subject: [PATCH] Revert "Use copy.deepcopy to clone HTTPRequest when following redirects." This reverts commit b7e604646537984e967dd25447a8df3e221bf9ed. Something about this broke the tests. --- tornado/simple_httpclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py index 26c32d375..aa2bec637 100644 --- a/tornado/simple_httpclient.py +++ b/tornado/simple_httpclient.py @@ -391,7 +391,7 @@ class _HTTPConnection(object): if (self.request.follow_redirects and self.request.max_redirects > 0 and self.code in (301, 302, 303, 307)): - new_request = copy.deepcopy(self.request) + new_request = copy.copy(self.request) new_request.url = urlparse.urljoin(self.request.url, self.headers["Location"]) new_request.max_redirects -= 1 -- 2.47.2