From 22bd767837d33dfccbd02905918bc0821549b6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=95=98=EB=88=84?= Date: Wed, 22 Mar 2023 14:18:44 +0000 Subject: [PATCH] fix: aiohttp is different with requests --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 4fe3d1c..72ce4f1 100644 --- a/app.py +++ b/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