Skip to content
Myr

Merge pull request #2489 from Lukasa/cookiebad

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

Don't label cookies for the target domain.

authored by Ian Cordasco · committed by Ian Cordasco · parents 8a2fd7c, f7c8568 · Browse files · 1 file+4 added−1 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:requests/sessions.py+4 added-1 removed
169 unmodified lines
170 del headers['Cookie']171 except KeyError:172 pass173174 # Extract any cookies sent on the response to the cookiejar175 # in the new request. Because we've mutated our copied prepared176 # request, use the old one that we haven't yet touched.174 extract_cookies_to_jar(prepared_request._cookies, prepared_request, resp.raw)177 extract_cookies_to_jar(prepared_request._cookies, req, resp.raw)178 prepared_request._cookies.update(self.cookies)179 prepared_request.prepare_cookies(prepared_request._cookies)180181 # Rebuild auth and proxy information.
504 unmodified lines