json-dumps-fix
This commit is contained in:
parent
2d708392b4
commit
9c14a4ebaa
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user