From 1caf2a359d14b18fb79a74d3b3aa1260e9489502 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Thu, 18 Jul 2019 15:37:25 +0200 Subject: [PATCH] Update webhook route to accept POST requests instead of only GET. --- wmn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmn.py b/wmn.py index e00eb9b..cb5da07 100644 --- a/wmn.py +++ b/wmn.py @@ -17,7 +17,7 @@ with open("config.yml", 'r') as ymlfile: cfg = yaml.safe_load(ymlfile) -@application.route('/matrix') +@application.route('/matrix', options=("HEAD", "POST")) def notify(): channel = request.args.get('channel') if channel is None or len(channel) == 0: