Slack: support incoming webhooks
by properly setting content-type to json Change-Id: I32da23036b9bd8787ec32925d81fb85dc6d72010
This commit is contained in:
parent
722ecaa7a5
commit
e620d4d1ef
@ -96,7 +96,7 @@ class SlackNotifier(abstract_notifier.AbstractNotifier):
|
||||
# Posting on the given URL
|
||||
self._log.debug("Sending to the url {0} , with query_params {1}".format(url, query_params))
|
||||
result = requests.post(url=url,
|
||||
data=slack_message,
|
||||
json=slack_message,
|
||||
verify=verify,
|
||||
params=query_params,
|
||||
proxies=proxyDict,
|
||||
|
Loading…
Reference in New Issue
Block a user