fix: 尝试修复aiohttp请求时的代理配置 #21

This commit is contained in:
helloplhm-qwq
2024-01-13 01:09:19 +08:00
parent 068dc5ab89
commit 5fb8913704
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ async def AsyncRequest(url, options = {}):
@ return: common.Httpx.ClientResponse类型的响应数据
'''
if (not variable.aioSession):
variable.aioSession = aiohttp.ClientSession()
variable.aioSession = aiohttp.ClientSession(trust_env=True)
# 缓存读取
cache_key = f'{url}{options}'
if (isinstance(options.get('cache-ignore'), list)):