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:
743ce81
)
handle 308 redirection the same as 301 and 302
author
Eric L Frederich
<eric.frederich@siemens.com>
Tue, 10 Jun 2014 20:30:17 +0000
(16:30 -0400)
committer
Eric L Frederich
<eric.frederich@siemens.com>
Tue, 10 Jun 2014 20:30:17 +0000
(16:30 -0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index 5aad8ce47e5a81e4d71a4047d7229f7652015e64..7bcebfdcb1749036d7f0e99fa4ac6a149c610e6d 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-39,6
+39,7
@@
REDIRECT_STATI = (
codes.found, # 302
codes.other, # 303
codes.temporary_moved, # 307
+ codes.resume, # 308
)
DEFAULT_REDIRECT_LIMIT = 30
CONTENT_CHUNK_SIZE = 10 * 1024