osanseviero commited on
Commit
be54656
1 Parent(s): f9c29d5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -102,7 +102,7 @@ def read_root():
102
  return Response(content=data, media_type="text/html")
103
 
104
  @app.post("/webhook")
105
- async def webhook(request):
106
  print("Received request")
107
  if request.headers.get("X-Webhook-Secret") is None:
108
  return Response("No secret", status_code=401)
 
102
  return Response(content=data, media_type="text/html")
103
 
104
  @app.post("/webhook")
105
+ async def webhook(request: Request):
106
  print("Received request")
107
  if request.headers.get("X-Webhook-Secret") is None:
108
  return Response("No secret", status_code=401)