json-dumps-fix

This commit is contained in:
Untone 2023-10-11 15:49:07 +03:00
parent 2d708392b4
commit 9c14a4ebaa

View File

@ -16,7 +16,7 @@ async def check_auth(req):
) )
headers = {"Authorization": token, "Content-Type": "application/json"} headers = {"Authorization": token, "Content-Type": "application/json"}
async with AsyncClient() as client: async with AsyncClient() as client:
response = await client.post(AUTH_URL, headers=headers, data=gql) response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql))
print(f"{response}") print(f"{response}")
if response.status_code != 200: if response.status_code != 200:
return False, None return False, None