Send correct json header for Slack/Mattermost
This commit is contained in:
@@ -2025,7 +2025,7 @@ 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()
|
||||||
|
Reference in New Issue
Block a user