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:
12d66cf
)
Fix Setting a cookie on redirect
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Sun, 10 Feb 2013 22:43:37 +0000
(17:43 -0500)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Sun, 10 Feb 2013 22:43:37 +0000
(17:43 -0500)
requests/sessions.py
patch
|
blob
|
history
diff --git
a/requests/sessions.py
b/requests/sessions.py
index
406d78e
..
37b5e20
100644
(file)
--- a/
requests/sessions.py
+++ b/
requests/sessions.py
@@
-136,6
+136,9
@@
class SessionRedirectMixin(object):
except KeyError:
pass
+ if response.headers.get('Set-Cookie'):
+ prepared_request.headers['Cookie'] = response.headers.get('Set-Cookie')
+
resp = self.send(
prepared_request,
stream=stream,