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:
ceb42dd
)
don't raise for redirects if they're not allowed
author
Kenneth Reitz
<me@kennethreitz.com>
Mon, 20 Feb 2012 18:40:55 +0000
(13:40 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Mon, 20 Feb 2012 18:40:55 +0000
(13:40 -0500)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
a8c9a88
..
6ee6831
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-779,7
+779,7
@@
class Response(object):
if self.error:
raise self.error
- if (self.status_code >= 300) and (self.status_code < 400):
+ if (self.status_code >= 300) and (self.status_code < 400)
and not self.rquest.allow_redirects
:
raise HTTPError('%s Redirection' % self.status_code)
elif (self.status_code >= 400) and (self.status_code < 500):