diff --git a/appPublic/httpclient.py b/appPublic/httpclient.py index e3e2c39..3b3a43b 100755 --- a/appPublic/httpclient.py +++ b/appPublic/httpclient.py @@ -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,