Change the method when it isn't already GET/HEAD

For some reason it was only change the method when a POST was being made. This
is almost certainly my fault.

Fixes #1303
This commit is contained in:
Ian Cordasco
2013-04-13 12:30:05 -04:00
parent eda4b55f7a
commit c5d0a0931e
+1 -1
View File
@@ -125,7 +125,7 @@ class SessionRedirectMixin(object):
# Do what the browsers do, despite standards...
if (resp.status_code in (codes.moved, codes.found) and
prepared_request.method == 'POST'):
prepared_request.method not in ('GET', 'HEAD')):
method = 'GET'
prepared_request.method = method