From 34700df9fba023e293bd41d860ec96e4019e6bb9 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Thu, 18 Jul 2019 15:42:10 +0200 Subject: [PATCH] Use the correct parameter to set accepted methods --- wmn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmn.py b/wmn.py index cb5da07..9212555 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', options=("HEAD", "POST")) +@application.route('/matrix', methods=['POST']) def notify(): channel = request.args.get('channel') if channel is None or len(channel) == 0: