Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files
mysite/routers/fastapi.py
CHANGED
@@ -403,7 +403,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
403 |
# "Content-Type": "application/json",
|
404 |
# "X-Line-Signature": line_signature,
|
405 |
# "Authorization": f"Bearer {os.getenv('ChannelAccessToken')}",
|
406 |
-
|
407 |
#r#esponse = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
|
408 |
if not line_signature:
|
409 |
raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
|
|
|
403 |
# "Content-Type": "application/json",
|
404 |
# "X-Line-Signature": line_signature,
|
405 |
# "Authorization": f"Bearer {os.getenv('ChannelAccessToken')}",
|
406 |
+
# }
|
407 |
#r#esponse = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
|
408 |
if not line_signature:
|
409 |
raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
|