From 642bbf60604d74319bd0e625277d4ac5bfe3cb9b Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 17 Dec 2013 22:52:48 -0600 Subject: [PATCH] Fixes #1805 Sure cookies are persisted to the session, but those new cookies are not added to the next prepared request. We need to update that new request's CookieJar with the new cookies. --- requests/sessions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/sessions.py b/requests/sessions.py index 06e17d4b..2aae6e40 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -155,6 +155,7 @@ class SessionRedirectMixin(object): extract_cookies_to_jar(prepared_request._cookies, prepared_request, resp.raw) + prepared_request._cookies.update(self.cookies) prepared_request.prepare_cookies(prepared_request._cookies) resp = self.send(