From d4616c7bf4f3b353523690decdd30a81d7f9ff04 Mon Sep 17 00:00:00 2001 From: GammaC0de Date: Sun, 23 Aug 2015 22:22:30 +0300 Subject: Update TransmissionRPC.py --- module/plugins/hooks/TransmissionRPC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/plugins/hooks') 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.*?): (?P.*?)\r\n", req.header)) + headers = dict(re.findall(r"(?P.+?): (?P.+?)\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, -- cgit v1.2.3