1
0

fix: aiohttp is different with requests

This commit is contained in:
オスカー、 2023-03-22 14:18:44 +00:00 committed by GitHub
parent 27afd95229
commit 22bd767837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
app.py
View File

@ -86,8 +86,9 @@ async def validate(data: dict) -> bool:
session = aiohttp.ClientSession()
r = await session.post(base, data=data)
text = await r.text()
if "is_valid:true" in r.text:
if "is_valid:true" in text:
return True
return False