From cbeda2167b6d778e8acb60c86d1a63a33885627e Mon Sep 17 00:00:00 2001 From: Artem Batalov Date: Wed, 2 Mar 2022 17:58:16 +0300 Subject: [PATCH] Fix http cookies logging --- smart_kit/action/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_kit/action/http.py b/smart_kit/action/http.py index fab083fd..506d6b31 100644 --- a/smart_kit/action/http.py +++ b/smart_kit/action/http.py @@ -96,7 +96,7 @@ def _log_response(self, user, response, additional_params=None): additional_params = additional_params or {} log(f"{self.__class__.__name__}.run get https response ", user=user, params={ 'headers': dict(response.headers), - 'cookie': {i.name: i.value for i in response.cookies}, + 'cookie': {k: v.value for k, v in response.cookies.items()}, 'status': response.status, log_const.KEY_NAME: "got_http_response", **additional_params,