alanchen1115
commited on
Commit
•
0ef5a09
1
Parent(s):
fea1ad8
Update main.py
Browse files
main.py
CHANGED
@@ -34,7 +34,7 @@ def root():
|
|
34 |
|
35 |
@app.post("/webhook")
|
36 |
async def webhook(request: Request):
|
37 |
-
signature = request.headers[
|
38 |
|
39 |
body = request.get_data(as_text=True)
|
40 |
app.logger.info("Request body: " + body)
|
|
|
34 |
|
35 |
@app.post("/webhook")
|
36 |
async def webhook(request: Request):
|
37 |
+
signature = request.headers["X-Line-Signature"]
|
38 |
|
39 |
body = request.get_data(as_text=True)
|
40 |
app.logger.info("Request body: " + body)
|