diff options
Diffstat (limited to 'g4f/requests/__init__.py')
-rw-r--r-- | g4f/requests/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/requests/__init__.py b/g4f/requests/__init__.py index e65de99a..80fc44b3 100644 --- a/g4f/requests/__init__.py +++ b/g4f/requests/__init__.py @@ -40,7 +40,7 @@ async def get_args_from_webview(url: str) -> dict: "Referer": window.real_url } cookies = [list(*cookie.items()) for cookie in window.get_cookies()] - cookies = dict([(name, cookie.value) for name, cookie in cookies]) + cookies = {name: cookie.value for name, cookie in cookies} window.destroy() return {"headers": headers, "cookies": cookies} |