bugfix
This commit is contained in:
parent
88fc36d7e3
commit
fededc673a
@ -153,15 +153,12 @@ class HttpClient:
|
||||
if headers:
|
||||
hp['headers'] = headers
|
||||
if url.startswith('https://'):
|
||||
debug(f'{url=} add_ssl_ctx')
|
||||
hp['ssl_ctx'] = ssl.create_default_context(cafile=certifi.where())
|
||||
# debug(f'{url=}, {hp=}')
|
||||
return await session.request(method, url,
|
||||
params=params,
|
||||
data=data,
|
||||
json=jd,
|
||||
headers=headers,
|
||||
ssl=ssl_ctx
|
||||
)
|
||||
**hp
|
||||
)
|
||||
|
||||
async def get_request_response(self, url, method='GET',
|
||||
params=None,
|
||||
|
Loading…
Reference in New Issue
Block a user