mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 09:57:33 -02:30
fix busted webhook notifications
whoops, I broke it
This commit is contained in:
@@ -57,6 +57,7 @@ class WebhookBackend(AWXBaseEmailBackend, CustomNotificationBase):
|
|||||||
|
|
||||||
def send_messages(self, messages):
|
def send_messages(self, messages):
|
||||||
sent_messages = 0
|
sent_messages = 0
|
||||||
|
self.headers['Content-Type'] = 'application/json'
|
||||||
if 'User-Agent' not in self.headers:
|
if 'User-Agent' not in self.headers:
|
||||||
self.headers['User-Agent'] = "Tower {}".format(get_awx_version())
|
self.headers['User-Agent'] = "Tower {}".format(get_awx_version())
|
||||||
if self.http_method.lower() not in ['put','post']:
|
if self.http_method.lower() not in ['put','post']:
|
||||||
|
|||||||
Reference in New Issue
Block a user