diff --git a/misskaty/helper/http.py b/misskaty/helper/http.py index 3e998852..ffdaa010 100644 --- a/misskaty/helper/http.py +++ b/misskaty/helper/http.py @@ -1,6 +1,6 @@ from asyncio import gather -import httpx +from httpx AsyncClient, Timeout from misskaty import app from aiohttp import ClientSession @@ -8,14 +8,14 @@ from aiohttp import ClientSession session = ClientSession() # HTTPx Async Client -fetch = httpx.AsyncClient( +fetch = AsyncClient( http2=True, verify=False, headers={ "Accept-Language": "id-ID", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edge/107.0.1418.42", }, - timeout=httpx.Timeout(20), + timeout=Timeout(20), ) app.fetch = fetch