summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-08-23 21:22:30 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-08-23 21:22:30 +0200
commitd4616c7bf4f3b353523690decdd30a81d7f9ff04 (patch)
treeb1ee6438454d422bab562aa68696499535931925 /module/plugins/hooks
parentCreate TransmissionRPC.py (diff)
downloadpyload-d4616c7bf4f3b353523690decdd30a81d7f9ff04.tar.xz
Update TransmissionRPC.py
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/TransmissionRPC.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hooks/TransmissionRPC.py b/module/plugins/hooks/TransmissionRPC.py
index 7e2c5250a..3d10b90c4 100644
--- a/module/plugins/hooks/TransmissionRPC.py
+++ b/module/plugins/hooks/TransmissionRPC.py
@@ -49,7 +49,7 @@ class TransmissionRPC(Addon):
except BadHeader, e:
if e.code == 409:
- headers = dict(re.findall(r"(?P<name>.*?): (?P<value>.*?)\r\n", req.header))
+ headers = dict(re.findall(r"(?P<name>.+?): (?P<value>.+?)\r?\n", req.header))
session_id = headers['X-Transmission-Session-Id']
req.c.setopt(pycurl.HTTPHEADER, ["X-Transmission-Session-Id: %s" % session_id])
response = self.load(transmission_rpc_url,