diff options
| author | Joe Gregorio <jcgregorio@google.com> | 2011-06-13 13:31:25 -0400 |
|---|---|---|
| committer | Joe Gregorio <jcgregorio@google.com> | 2011-06-13 13:31:25 -0400 |
| commit | 60d72ec44988c7ecda4d7d4706be942fea4a1bca (patch) | |
| tree | 397e22eff317bf9f64e7ed70693dbbe38dc2582d /python3/httplib2 | |
| parent | dcc062fcb9c3eeac045471919b017e70a258e217 (diff) | |
| download | httplib2-60d72ec44988c7ecda4d7d4706be942fea4a1bca.tar.gz | |
Redirect with a GET on 302 regardless of the originating method. Fixes issue 139.
Diffstat (limited to 'python3/httplib2')
| -rw-r--r-- | python3/httplib2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python3/httplib2/__init__.py b/python3/httplib2/__init__.py index c5ab677..99353b2 100644 --- a/python3/httplib2/__init__.py +++ b/python3/httplib2/__init__.py @@ -973,7 +973,7 @@ the same interface as FileCache.""" 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 |
