From 0c113739ee6fbc5a6a1bf1142f45583c159d1fca Mon Sep 17 00:00:00 2001 From: Jimmy Date: Mon, 21 Feb 2022 02:25:20 +0000 Subject: [PATCH] Remove json request --- app/dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')