Modified:
/python2/httplib2/__init__.py
/python3/httplib2/__init__.py
=======================================
--- /python2/httplib2/__init__.py Mon Jun 13 10:09:20 2011
+++ /python2/httplib2/__init__.py Mon Jun 13 10:31:25 2011
@@ -1230,7 +1230,7 @@
if not old_response.has_key('content-location'):
old_response['content-location'] = absolute_uri
redirect_method = method
- if response.status == 303:
+ if response.status in [302, 303]:
redirect_method = "GET"
(response, content) = self.request(location,
redirect_method, body=body, headers = headers, redirections = redirections
- 1)
response.previous = old_response
=======================================
--- /python3/httplib2/__init__.py Mon Jun 13 10:09:20 2011
+++ /python3/httplib2/__init__.py Mon Jun 13 10:31:25 2011
@@ -973,7 +973,7 @@
if 'content-location' not in old_response:
old_response['content-location'] = absolute_uri
redirect_method = method
- if response.status == 303:
+ if response.status in [302, 303]:
redirect_method = "GET"
(response, content) = self.request(location,
redirect_method, body=body, headers = headers, redirections = redirections
- 1)
response.previous = old_response