Skip to content

Commit

Permalink
Fix Deluge 1.3.14 requires Content-Type header
Browse files Browse the repository at this point in the history
  • Loading branch information
labrys committed Mar 11, 2017
1 parent 9503765 commit f51338e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medusa/clients/deluge_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand Down

0 comments on commit f51338e

Please sign in to comment.