From 2f738415b8d674b364aba3667bda23005294f780 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 30 Oct 2020 13:05:37 -0400 Subject: [PATCH] fix busted webhook notifications whoops, I broke it --- awx/main/notifications/webhook_backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/notifications/webhook_backend.py b/awx/main/notifications/webhook_backend.py index 69628d72b4..d67fc11a35 100644 --- a/awx/main/notifications/webhook_backend.py +++ b/awx/main/notifications/webhook_backend.py @@ -57,6 +57,7 @@ class WebhookBackend(AWXBaseEmailBackend, CustomNotificationBase): def send_messages(self, messages): sent_messages = 0 + self.headers['Content-Type'] = 'application/json' if 'User-Agent' not in self.headers: self.headers['User-Agent'] = "Tower {}".format(get_awx_version()) if self.http_method.lower() not in ['put','post']: