1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Remove scraper headers

This commit is contained in:
Myned 2022-02-22 13:11:35 -06:00
parent fe094b5fa4
commit acab70f4af
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8

View file

@ -54,9 +54,7 @@ async def _kheina(url):
async def _post(url, data): async def _post(url, data):
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.post( async with session.post(url, data=data) as response:
url, data=data, headers={"User-Agent": "Myned/Modufur (https://github.com/Myned/Modufur)"}
) as response:
return await response.json() if response.status == 200 else None return await response.json() if response.status == 200 else None