Send correct json header for Slack/Mattermost
This commit is contained in:
@@ -2024,9 +2024,9 @@ class SLACK(object):
|
|||||||
|
|
||||||
http_handler = HTTPSConnection(slackhost)
|
http_handler = HTTPSConnection(slackhost)
|
||||||
http_handler.request("POST",
|
http_handler.request("POST",
|
||||||
slackpath,
|
slackpath,
|
||||||
headers={'Content-type': "application/x-www-form-urlencoded"},
|
headers={'Content-type': "application/json"},
|
||||||
body=json.dumps(data))
|
body=json.dumps(data))
|
||||||
|
|
||||||
response = http_handler.getresponse()
|
response = http_handler.getresponse()
|
||||||
request_status = response.status
|
request_status = response.status
|
||||||
|
Reference in New Issue
Block a user