mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix Setting a cookie on redirect
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user