diff options
author | Joe Gregorio <jcgregorio@google.com> | 2011-06-13 13:49:33 -0400 |
---|---|---|
committer | Joe Gregorio <jcgregorio@google.com> | 2011-06-13 13:49:33 -0400 |
commit | d16e2c9b4575c91ab519ec3aedd0c466238325bb (patch) | |
tree | 516ac05c94981c6d900caa886a4c37f15ac5eb14 /python2 | |
parent | 087753f996a07c47976795ce70d05fc731dd98de (diff) | |
download | httplib2-d16e2c9b4575c91ab519ec3aedd0c466238325bb.tar.gz |
Fix issue 47. Redirects that become a GET should not have a body.
Diffstat (limited to 'python2')
-rw-r--r-- | python2/httplib2/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |