projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
080db5e
)
Redirect history fix (Closes #91)
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 24 Jul 2011 02:11:54 +0000
(22:11 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 24 Jul 2011 02:11:54 +0000
(22:11 -0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
289546c
..
05623ec
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-170,10
+170,7
@@
class Request(object):
r = build(resp)
- if r.status_code in REDIRECT_STATI:
- self.redirect = True
-
- if self.redirect:
+ if r.status_code in REDIRECT_STATI and not self.redirect:
while (
('location' in r.headers) and