diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-22 09:21:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 09:21:17 +0200 |
commit | 454be0ed70c730dba13342156c15aea2ba31647a (patch) | |
tree | 30dca4116c4dc22a46b439db62aabb09e81fc4c5 /g4f | |
parent | Merge pull request #1875 from hlohaus/carst (diff) | |
download | gpt4free-454be0ed70c730dba13342156c15aea2ba31647a.tar gpt4free-454be0ed70c730dba13342156c15aea2ba31647a.tar.gz gpt4free-454be0ed70c730dba13342156c15aea2ba31647a.tar.bz2 gpt4free-454be0ed70c730dba13342156c15aea2ba31647a.tar.lz gpt4free-454be0ed70c730dba13342156c15aea2ba31647a.tar.xz gpt4free-454be0ed70c730dba13342156c15aea2ba31647a.tar.zst gpt4free-454be0ed70c730dba13342156c15aea2ba31647a.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/cookies.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g4f/cookies.py b/g4f/cookies.py index efd6e969..4f0899b4 100644 --- a/g4f/cookies.py +++ b/g4f/cookies.py @@ -111,6 +111,9 @@ def read_cookie_files(dirPath: str = "./har_and_cookies"): for v in harFile['log']['entries']: v_cookies = {} for c in v['request']['cookies']: + if "domain" not in c: + continue + if c['domain'] not in v_cookies: v_cookies[c['domain']] = {} v_cookies[c['domain']][c['name']] = c['value'] |