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