dumnps-fix
This commit is contained in:
parent
4992d3e312
commit
0c73f376a2
|
@ -1,3 +1,4 @@
|
|||
import json
|
||||
from functools import wraps
|
||||
from httpx import AsyncClient, HTTPError
|
||||
from settings import AUTH_URL
|
||||
|
@ -17,7 +18,7 @@ async def check_auth(req):
|
|||
headers = {"Authorization": token, "Content-Type": "application/json"}
|
||||
async with AsyncClient() as client:
|
||||
response = await client.post(AUTH_URL, headers=headers, data=json.dumps(gql))
|
||||
print(f"{response}")
|
||||
print(f"{response.text}")
|
||||
if response.status_code != 200:
|
||||
return False, None
|
||||
r = response.json()
|
||||
|
|
Loading…
Reference in New Issue
Block a user