XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update cookies.py

454be0ed
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -0
Modified g4f/cookies.py +3 -0
@@ -111,6 +111,9 @@ def read_cookie_files(dirPath: str = "./har_and_cookies"):
111 111 for v in harFile['log']['entries']:
112 112 v_cookies = {}
113 113 for c in v['request']['cookies']:
114 if "domain" not in c:
115 continue
116
114 117 if c['domain'] not in v_cookies:
115 118 v_cookies[c['domain']] = {}
116 119 v_cookies[c['domain']][c['name']] = c['value']