fix: aiohttp is different with requests
This commit is contained in:
parent
27afd95229
commit
22bd767837
1 changed files with 2 additions and 1 deletions
3
app.py
3
app.py
|
@ -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
|
||||
|
|
Reference in a new issue