From 5d84ec3be2e7f1198e5b1cff8a929525ad265e16 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 20 Jul 2016 18:04:56 -0700 Subject: [PATCH] Send correct json header for Slack/Mattermost --- plexpy/notifiers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index c480de4e..c41a0a74 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -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