Use the correct parameter to set accepted methods

This commit is contained in:
Ben 2019-07-18 15:42:10 +02:00
parent 1caf2a359d
commit 34700df9fb
Signed by: ben
GPG Key ID: 0F54A7ED232D3319
1 changed files with 1 additions and 1 deletions

2
wmn.py
View File

@ -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: