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:
3bd8afb
)
Add explanatory comment for cookie change
author
Cory Benfield
<lukasaoz@gmail.com>
Sat, 14 Mar 2015 11:29:05 +0000
(11:29 +0000)
committer
Cory Benfield
<lukasaoz@gmail.com>
Sat, 14 Mar 2015 11:29:05 +0000
(11:29 +0000)
requests/sessions.py
patch
|
blob
|
history
diff --git
a/requests/sessions.py
b/requests/sessions.py
index 9d5498c6dbce1fc52cfbb1e02cabcce2eec49905..ef3f22bc5c5b7075301d5a162de00061041f2417 100644
(file)
--- a/
requests/sessions.py
+++ b/
requests/sessions.py
@@
-171,6
+171,9
@@
class SessionRedirectMixin(object):
except KeyError:
pass
+ # Extract any cookies sent on the response to the cookiejar
+ # in the new request. Because we've mutated our copied prepared
+ # request, use the old one that we haven't yet touched.
extract_cookies_to_jar(prepared_request._cookies, req, resp.raw)
prepared_request._cookies.update(self.cookies)
prepared_request.prepare_cookies(prepared_request._cookies)