Remove json request

This commit is contained in:
Jimmy 2022-02-21 02:25:20 +00:00
parent a04f24fcff
commit 0c113739ee
1 changed files with 1 additions and 1 deletions

View File

@ -5,8 +5,8 @@ from fastapi.exceptions import HTTPException
async def auth_hook(request: Request):
try:
json = await request.json()
text = await request.body()
except:
raise HTTPException(status_code=204, detail="Missing or bad content")
header_signature = request.headers.get('X-Hub-Signature')