Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1158 from yehudasa/master

Fix check that breaks handling of 303 response in some cases (v2)
  • Loading branch information...
commit ae55676a50d8e4a0591a8f8f5f0c31d694206bbe 2 parents 113b67c + b07c1eb
@kennethreitz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  requests/sessions.py
View
2  requests/sessions.py
@@ -106,7 +106,7 @@ def resolve_redirects(self, resp, req, stream=False, timeout=None, verify=True,
url = urljoin(resp.url, requote_uri(url))
# http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4
- if resp.status_code is codes.see_other and req.method != 'HEAD':
+ if resp.status_code == codes.see_other and req.method != 'HEAD':
method = 'GET'
# Do what the browsers do, despite standards...
Please sign in to comment.
Something went wrong with that request. Please try again.