Remove json request
This commit is contained in:
parent
a04f24fcff
commit
0c113739ee
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue