Skip to content
Myr

Add explanatory comment for cookie change

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

authored by Cory Benfield · committed by Cory Benfield · parent 3bd8afb · 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
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.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)180
505 unmodified lines