From fededc673ae56902bb4bcfbe2f7c6271ff21b853 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 7 Jun 2025 19:39:59 +0800 Subject: [PATCH] bugfix --- appPublic/httpclient.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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,