mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Removed extra extra parentheses in SessionRedirectMixin.resolve_redirects
This commit is contained in:
@@ -139,3 +139,4 @@ Patches and Suggestions
|
||||
- Park Ilsu <daftonshady@gmail.com> @daftshady
|
||||
- Matt Spitz @mattspitz
|
||||
- Vikram Oberoi @voberoi
|
||||
- Can Ibanoglu <can.ibanoglu@gmail.com> @canibanoglu
|
||||
|
||||
@@ -73,7 +73,7 @@ class SessionRedirectMixin(object):
|
||||
i = 0
|
||||
|
||||
# ((resp.status_code is codes.see_other))
|
||||
while (('location' in resp.headers and resp.status_code in REDIRECT_STATI)):
|
||||
while ('location' in resp.headers and resp.status_code in REDIRECT_STATI):
|
||||
prepared_request = req.copy()
|
||||
|
||||
resp.content # Consume socket so it can be released
|
||||
|
||||
Reference in New Issue
Block a user