From 2105a515d749b74eef9a6bb6af008aa6a842e313 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 20 Aug 2018 17:53:45 +0100 Subject: New upstream version 1.1.4 --- macaroonbakery/httpbakery/_client.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'macaroonbakery/httpbakery') diff --git a/macaroonbakery/httpbakery/_client.py b/macaroonbakery/httpbakery/_client.py index 4fe0ab1..2510f73 100644 --- a/macaroonbakery/httpbakery/_client.py +++ b/macaroonbakery/httpbakery/_client.py @@ -290,12 +290,8 @@ def _prepare_discharge_hook(req, client): Retry.count) ) client.handle_error(error, req.url) - # Replace the private _cookies from req as it is a copy of - # the original cookie jar passed into the requests method and we need - # to set the cookie for this request. - req._cookies = client.cookies req.headers.pop('Cookie', None) - req.prepare_cookies(req._cookies) + req.prepare_cookies(client.cookies) req.headers[BAKERY_PROTOCOL_HEADER] = \ str(bakery.LATEST_VERSION) with requests.Session() as s: -- cgit v1.2.3