mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Send correct json header for Slack/Mattermost
This commit is contained in:
parent
53bca5a3d3
commit
5d84ec3be2
1 changed files with 3 additions and 3 deletions
|
@ -2024,9 +2024,9 @@ class SLACK(object):
|
|||
|
||||
http_handler = HTTPSConnection(slackhost)
|
||||
http_handler.request("POST",
|
||||
slackpath,
|
||||
headers={'Content-type': "application/x-www-form-urlencoded"},
|
||||
body=json.dumps(data))
|
||||
slackpath,
|
||||
headers={'Content-type': "application/json"},
|
||||
body=json.dumps(data))
|
||||
|
||||
response = http_handler.getresponse()
|
||||
request_status = response.status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue