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):
|
async def auth_hook(request: Request):
|
||||||
try:
|
try:
|
||||||
json = await request.json()
|
|
||||||
text = await request.body()
|
text = await request.body()
|
||||||
|
|
||||||
except:
|
except:
|
||||||
raise HTTPException(status_code=204, detail="Missing or bad content")
|
raise HTTPException(status_code=204, detail="Missing or bad content")
|
||||||
header_signature = request.headers.get('X-Hub-Signature')
|
header_signature = request.headers.get('X-Hub-Signature')
|
||||||
|
|
Loading…
Reference in New Issue