Send correct json header for Slack/Mattermost

This commit is contained in:
JonnyWong16 2016-07-20 18:04:56 -07:00
parent 53bca5a3d3
commit 5d84ec3be2

View file

@ -2025,7 +2025,7 @@ class SLACK(object):
http_handler = HTTPSConnection(slackhost)
http_handler.request("POST",
slackpath,
headers={'Content-type': "application/x-www-form-urlencoded"},
headers={'Content-type': "application/json"},
body=json.dumps(data))
response = http_handler.getresponse()