From f51338e08882dd0fd20b263f525fa8da80c54368 Mon Sep 17 00:00:00 2001 From: Labrys Date: Sat, 11 Mar 2017 18:45:00 -0500 Subject: [PATCH] Fix Deluge 1.3.14 requires Content-Type header --- medusa/clients/deluge_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medusa/clients/deluge_client.py b/medusa/clients/deluge_client.py index 5cdf657bd4..7e872908b2 100644 --- a/medusa/clients/deluge_client.py +++ b/medusa/clients/deluge_client.py @@ -44,10 +44,10 @@ def __init__(self, host=None, username=None, password=None): :type password: string """ super(DelugeAPI, self).__init__('Deluge', host, username, password) + self.session.headers.update({'Content-Type': 'application/json'}) self.url = '{host}json'.format(host=self.host) def _get_auth(self): - post_data = json.dumps({ 'method': 'auth.login', 'params': [