diff options
| author | Joe Gregorio <jcgregorio@google.com> | 2011-02-13 21:40:09 -0500 |
|---|---|---|
| committer | Joe Gregorio <jcgregorio@google.com> | 2011-02-13 21:40:09 -0500 |
| commit | 694a812923f5e29ca3d8ef1e2eae5c5262b64dd7 (patch) | |
| tree | 2496bc7415519aa3c4fb8873bed42c69d509b6f2 /python2/httplib2 | |
| parent | d1137c5b87562b5b089997cc1ad6a1422d331097 (diff) | |
| download | httplib2-694a812923f5e29ca3d8ef1e2eae5c5262b64dd7.tar.gz | |
Fixes issue 123.
Diffstat (limited to 'python2/httplib2')
| -rw-r--r-- | python2/httplib2/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py index 81e9f93..00c6250 100644 --- a/python2/httplib2/__init__.py +++ b/python2/httplib2/__init__.py @@ -987,7 +987,9 @@ the same interface as FileCache.""" old_response = copy.deepcopy(response) if not old_response.has_key('content-location'): old_response['content-location'] = absolute_uri - redirect_method = ((response.status == 303) and (method not in ["GET", "HEAD"])) and "GET" or method + redirect_method = method + if response.status == 303: + redirect_method = "GET" (response, content) = self.request(location, redirect_method, body=body, headers = headers, redirections = redirections - 1) response.previous = old_response else: |
