summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/network/CurlRequest.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/network/CurlRequest.py')
-rw-r--r--pyload/plugins/network/CurlRequest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/plugins/network/CurlRequest.py b/pyload/plugins/network/CurlRequest.py
index e5adc8be1..775c98522 100644
--- a/pyload/plugins/network/CurlRequest.py
+++ b/pyload/plugins/network/CurlRequest.py
@@ -177,7 +177,8 @@ class CurlRequest(Request):
self.c.setopt(pycurl.REFERER, "")
if cookies:
- self.c.setopt(pycurl.COOKIELIST, self.cj.output())
+ for c in self.cj.output().splitlines():
+ self.c.setopt(pycurl.COOKIELIST, c)
else:
# Magic string that erases all cookies
self.c.setopt(pycurl.COOKIELIST, "ALL")