diff --git a/app/dependencies.py b/app/dependencies.py index 70c0366..9717c6e 100644 --- a/app/dependencies.py +++ b/app/dependencies.py @@ -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')