mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 22:07:36 -02:30
Merge pull request #10566 from strollo/webhook-headers-patch
Headers missing in webhook notification request
This commit is contained in:
@@ -72,7 +72,7 @@ class WebhookBackend(AWXBaseEmailBackend, CustomNotificationBase):
|
|||||||
"{}".format(m.recipients()[0]),
|
"{}".format(m.recipients()[0]),
|
||||||
auth=auth,
|
auth=auth,
|
||||||
data=json.dumps(m.body, ensure_ascii=False).encode('utf-8'),
|
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),
|
verify=(not self.disable_ssl_verification),
|
||||||
)
|
)
|
||||||
if r.status_code >= 400:
|
if r.status_code >= 400:
|
||||||
|
|||||||
Reference in New Issue
Block a user