mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
fix a display bug in webhook notifications with unicode characters
see: https://github.com/ansible/awx/issues/7400
This commit is contained in:
parent
b5c2a6ad65
commit
df874966a6
@ -68,7 +68,7 @@ class WebhookBackend(AWXBaseEmailBackend, CustomNotificationBase):
|
||||
auth = (self.username, self.password)
|
||||
r = chosen_method("{}".format(m.recipients()[0]),
|
||||
auth=auth,
|
||||
json=m.body,
|
||||
data=json.dumps(m.body, ensure_ascii=False).encode('utf-8'),
|
||||
headers=self.headers,
|
||||
verify=(not self.disable_ssl_verification))
|
||||
if r.status_code >= 400:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user