From d4ec0df00c6bc9a4fb48b073bfb310a144dc2d04 Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Tue, 14 Jun 2022 19:22:12 +0800 Subject: [PATCH] Update http_utils.py --- utils/http_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/http_utils.py b/utils/http_utils.py index 46e0a00e..e7550920 100644 --- a/utils/http_utils.py +++ b/utils/http_utils.py @@ -51,7 +51,7 @@ class AsyncHttpx: if not headers: headers = get_user_agent() proxy = proxy if proxy else cls.proxy if use_proxy else None - async with httpx.AsyncClient(proxies=proxy,verify=verify) as client: + async with httpx.AsyncClient(proxies=proxy, verify=verify) as client: return await client.get( url, params=params, @@ -98,7 +98,7 @@ class AsyncHttpx: if not headers: headers = get_user_agent() proxy = proxy if proxy else cls.proxy if use_proxy else None - async with httpx.AsyncClient(proxies=proxy,verify=verify) as client: + async with httpx.AsyncClient(proxies=proxy, verify=verify) as client: return await client.post( url, content=content, @@ -172,7 +172,7 @@ class AsyncHttpx: headers = get_user_agent() proxy = proxy if proxy else cls.proxy if use_proxy else None try: - async with httpx.AsyncClient(proxies=proxy,verify=verify) as client: + async with httpx.AsyncClient(proxies=proxy, verify=verify) as client: async with client.stream( "GET", url,