Merge pull request #2172 from ContinuousFunction/master

Add to authors and fix case
This commit is contained in:
2014-08-22 09:04:50 -04:00
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -153,3 +153,4 @@ Patches and Suggestions
- Erik Wickstrom <erik@erikwickstrom.com> (`@erikwickstrom <https://github.com/erikwickstrom>`_)
- Константин Подшумок (`@podshumok <https://github.com/podshumok>`_)
- Ben Bass (`@codedstructure <https://github.com/codedstructure>`_)
- Jonathan Wong <evolutionace@gmail.com> (`@ContinuousFunction <https://github.com/ContinuousFunction>`_)
+2 -2
View File
@@ -91,13 +91,13 @@ class SessionRedirectMixin(object):
"""Receives a Response. Returns a generator of Responses."""
i = 0
hist = [] #keep track of history
hist = [] # keep track of history
while resp.is_redirect:
prepared_request = req.copy()
if i > 0:
#update history and keep track of redirects
# Update history and keep track of redirects.
hist.append(resp)
new_hist = list(hist)
resp.history = new_hist