From 359776d48af970b0ff0dfd896ce169f6f8601c5a Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 28 Feb 2020 11:27:03 -0800 Subject: [PATCH] Default webhook notification method to POST --- plexpy/notifiers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 839178e5..b5b5bb61 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -3609,7 +3609,7 @@ class WEBHOOK(Notifier): """ NAME = 'Webhook' _DEFAULT_CONFIG = {'hook': '', - 'method': '' + 'method': 'POST' } def agent_notify(self, subject='', body='', action='', **kwargs): @@ -3655,8 +3655,7 @@ class WEBHOOK(Notifier): 'name': 'webhook_method', 'description': 'The Webhook HTTP request method.', 'input_type': 'select', - 'select_options': {'': '', - 'GET': 'GET', + 'select_options': {'GET': 'GET', 'POST': 'POST', 'PUT': 'PUT', 'DELETE': 'DELETE'}