From: Cory Benfield Date: Sat, 14 Mar 2015 11:29:05 +0000 (+0000) Subject: Add explanatory comment for cookie change X-Git-Tag: v2.6.0~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7c85685a8e484715649c13bacae6adc7f5f3908;p=services%2Fpython-requests.git Add explanatory comment for cookie change --- diff --git a/requests/sessions.py b/requests/sessions.py index 9d5498c..ef3f22b 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -171,6 +171,9 @@ class SessionRedirectMixin(object): except KeyError: pass + # Extract any cookies sent on the response to the cookiejar + # in the new request. Because we've mutated our copied prepared + # request, use the old one that we haven't yet touched. extract_cookies_to_jar(prepared_request._cookies, req, resp.raw) prepared_request._cookies.update(self.cookies) prepared_request.prepare_cookies(prepared_request._cookies)