Merge pull request #10566 from strollo/webhook-headers-patch

Headers missing in webhook notification request
This commit is contained in:
Shane McDonald 2021-07-22 17:08:56 -04:00 committed by GitHub
commit ef82c1ce01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ class WebhookBackend(AWXBaseEmailBackend, CustomNotificationBase):
"{}".format(m.recipients()[0]),
auth=auth,
data=json.dumps(m.body, ensure_ascii=False).encode('utf-8'),
headers=get_awx_http_client_headers(),
headers=dict(list(get_awx_http_client_headers().items()) + list((self.headers or {}).items())),
verify=(not self.disable_ssl_verification),
)
if r.status_code >= 400: