Spaces:
Sleeping
Sleeping
alanchen1115
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -37,7 +37,7 @@ async def webhook(request: Request):
|
|
37 |
signature = request.headers['X-Line-Signature']
|
38 |
body = await request.body()
|
39 |
try:
|
40 |
-
|
41 |
except InvalidSignatureError:
|
42 |
raise HTTPException(status_code=400, detail="SignatureError")
|
43 |
|
|
|
37 |
signature = request.headers['X-Line-Signature']
|
38 |
body = await request.body()
|
39 |
try:
|
40 |
+
line_handler.handle(body.decode(),signature)
|
41 |
except InvalidSignatureError:
|
42 |
raise HTTPException(status_code=400, detail="SignatureError")
|
43 |
|