mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
fix?
This commit is contained in:
parent
6270fc497e
commit
3cce0d4907
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue