From dd4635bd73e3b4c58c68989c5eaa2ae7d7716671 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sat, 30 Dec 2023 02:42:52 +0100 Subject: [PATCH] _unquote received cookie values (#196) --- curl_cffi/requests/cookies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/curl_cffi/requests/cookies.py b/curl_cffi/requests/cookies.py index 2fb7337e..d02d1a34 100644 --- a/curl_cffi/requests/cookies.py +++ b/curl_cffi/requests/cookies.py @@ -8,6 +8,7 @@ import time import typing from http.cookiejar import Cookie, CookieJar +from http.cookies import _unquote from urllib.parse import urlparse from dataclasses import dataclass import warnings @@ -63,7 +64,7 @@ def from_curl_format(cls, set_cookie_line: bytes): secure=cls.parse_bool(secure), expires=int(expires), name=name, - value=value, + value=_unquote(value), http_only=http_only, )