Skip to content

Commit

Permalink
fix(web.utils): YummyCookieJar: catch up with aiohttp 3.11.11
Browse files Browse the repository at this point in the history
Fixes: b463cad
Signed-off-by: Rongrong <i@rong.moe>
  • Loading branch information
Rongronggg9 committed Dec 23, 2024
1 parent f37672b commit 1b2188b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class YummyCookieJar(aiohttp.abc.AbstractCookieJar):

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.__real_cookie_jar = aiohttp.DummyCookieJar(*args, **kwargs)
self.__real_cookie_jar: aiohttp.abc.AbstractCookieJar = aiohttp.DummyCookieJar(*args, **kwargs)
self.__init_args = args
self.__init_kwargs = kwargs
self.__is_dummy = True
Expand All @@ -86,6 +86,10 @@ def clear_domain(self, *args, **kwargs):
def filter_cookies(self, *args, **kwargs):
return self.__real_cookie_jar.filter_cookies(*args, **kwargs)

@property
def quote_cookie(self) -> bool:
return self.__real_cookie_jar.quote_cookie


class WebError(Exception):
def __init__(self, error_name: str, status: Union[int, str] = None, url: str = None,
Expand Down

0 comments on commit 1b2188b

Please sign in to comment.