Merge pull request #1158 from yehudasa/master

Fix check that breaks handling of 303 response in some cases (v2)
This commit is contained in:
Kenneth Reitz
2013-02-01 07:30:47 -08:00
+1 -1
View File
@@ -106,7 +106,7 @@ class SessionRedirectMixin(object):
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...