Skip to content

Commit

Permalink
Merge pull request #2381 from pymedusa/hotfix/deluge-content-type
Browse files Browse the repository at this point in the history
Fix Deluge 1.3.14 requires Content-Type header
  • Loading branch information
labrys authored Mar 12, 2017
2 parents 9503765 + f51338e commit a011615
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 a011615

Please sign in to comment.