From d16e2c9b4575c91ab519ec3aedd0c466238325bb Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Mon, 13 Jun 2011 13:49:33 -0400 Subject: Fix issue 47. Redirects that become a GET should not have a body. --- python2/httplib2/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python2') diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index 0b3112f..16fe452 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -1232,6 +1232,7 @@ and more. 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: -- cgit v1.2.1