Default webhook notification method to POST

This commit is contained in:
JonnyWong16 2020-02-28 11:27:03 -08:00
parent 05a16bb199
commit 359776d48a

View file

@ -3609,7 +3609,7 @@ class WEBHOOK(Notifier):
""" """
NAME = 'Webhook' NAME = 'Webhook'
_DEFAULT_CONFIG = {'hook': '', _DEFAULT_CONFIG = {'hook': '',
'method': '' 'method': 'POST'
} }
def agent_notify(self, subject='', body='', action='', **kwargs): def agent_notify(self, subject='', body='', action='', **kwargs):
@ -3655,8 +3655,7 @@ class WEBHOOK(Notifier):
'name': 'webhook_method', 'name': 'webhook_method',
'description': 'The Webhook HTTP request method.', 'description': 'The Webhook HTTP request method.',
'input_type': 'select', 'input_type': 'select',
'select_options': {'': '', 'select_options': {'GET': 'GET',
'GET': 'GET',
'POST': 'POST', 'POST': 'POST',
'PUT': 'PUT', 'PUT': 'PUT',
'DELETE': 'DELETE'} 'DELETE': 'DELETE'}