🐛 Fix httpxrequest timeout param

This commit is contained in:
xtaodada 2023-04-26 18:25:58 +08:00
parent 0a63b8250d
commit b3c6b622c2
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -19,7 +19,7 @@ timeout = httpx.Timeout(
class HTTPXRequest(AbstractAsyncContextManager):
def __init__(self, *args, headers=None, **kwargs):
self._client = httpx.AsyncClient(headers=headers, timeout=timeout, *args, **kwargs)
self._client = httpx.AsyncClient(headers=headers, *args, **kwargs)
async def __aenter__(self):
try: