[httplib2] push by joe.gregorio - Fix issue 47. Redirects that become a GET should not have a body. on 2011-06-13 17:49 GMT

1 view
Skip to first unread message

codesite...@google.com

unread,
Jun 13, 2011, 2:59:09 PM6/13/11
to httplib...@googlegroups.com
Revision: 107edd9d1a05
Author: Joe Gregorio <jcgre...@google.com>
Date: Mon Jun 13 10:49:33 2011
Log: Fix issue 47. Redirects that become a GET should not have a body.
http://code.google.com/p/httplib2/source/detail?r=107edd9d1a05

Modified:
/python2/httplib2/__init__.py
/python3/httplib2/__init__.py

=======================================
--- /python2/httplib2/__init__.py Mon Jun 13 10:42:08 2011
+++ /python2/httplib2/__init__.py Mon Jun 13 10:49:33 2011
@@ -1232,6 +1232,7 @@
redirect_method = method
if response.status in [302, 303]:
redirect_method = "GET"
+ body = None
(response, content) = self.request(location,
redirect_method, body=body, headers = headers, redirections = redirections
- 1)
response.previous = old_response
else:
=======================================
--- /python3/httplib2/__init__.py Mon Jun 13 10:42:08 2011
+++ /python3/httplib2/__init__.py Mon Jun 13 10:49:33 2011
@@ -975,6 +975,7 @@
redirect_method = method
if response.status in [302, 303]:
redirect_method = "GET"
+ body = None
(response, content) = self.request(location,
redirect_method, body=body, headers = headers, redirections = redirections
- 1)
response.previous = old_response
else:

Reply all
Reply to author
Forward
0 new messages