From: Cory Benfield Date: Sat, 14 Mar 2015 08:49:55 +0000 (+0000) Subject: Don't ascribe cookies to the target domain. X-Git-Tag: v2.6.0~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bd8afbff29e50b38f889b2f688785a669b9aafc;p=services%2Fpython-requests.git Don't ascribe cookies to the target domain. --- diff --git a/requests/sessions.py b/requests/sessions.py index 4f30696..9d5498c 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -171,7 +171,7 @@ class SessionRedirectMixin(object): except KeyError: pass - extract_cookies_to_jar(prepared_request._cookies, prepared_request, resp.raw) + extract_cookies_to_jar(prepared_request._cookies, req, resp.raw) prepared_request._cookies.update(self.cookies) prepared_request.prepare_cookies(prepared_request._cookies)