Skip to content

Commit

Permalink
_unquote received cookie values (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus authored Dec 30, 2023
1 parent 5caae8f commit dd4635b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion curl_cffi/requests/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
)

Expand Down

0 comments on commit dd4635b

Please sign in to comment.