Fix POST 303 redirect resonse handling

This fixes issue #1156.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh
2013-01-31 10:32:00 -08:00
parent 113b67c069
commit b07c1ebd85
+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...