Skip to content
Myr

Fix Setting a cookie on redirect

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ian Cordasco · committed by Ian Cordasco · parent 12d66cf · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:requests/sessions.py+3 added
134 unmodified lines
135 del prepared_request.headers['Cookie']136 except KeyError:137 pass138139 if response.headers.get('Set-Cookie'):140 prepared_request.headers['Cookie'] = response.headers.get('Set-Cookie')141142 resp = self.send(143 prepared_request,144 stream=stream,145 timeout=timeout,
313 unmodified lines