summaryrefslogtreecommitdiffstats
path: root/pyload/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins')
-rw-r--r--pyload/plugins/Request.py1
-rw-r--r--pyload/plugins/network/CurlDownload.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/pyload/plugins/Request.py b/pyload/plugins/Request.py
index 9f6fe8c2b..651da09f9 100644
--- a/pyload/plugins/Request.py
+++ b/pyload/plugins/Request.py
@@ -33,6 +33,7 @@ class Request(object):
# Last response code
self.code = 0
+ self.flags = 0
self.doAbort = False
self.initContext()
diff --git a/pyload/plugins/network/CurlDownload.py b/pyload/plugins/network/CurlDownload.py
index e23f193e7..819c6cfb9 100644
--- a/pyload/plugins/network/CurlDownload.py
+++ b/pyload/plugins/network/CurlDownload.py
@@ -23,6 +23,7 @@ from shutil import move
import pycurl
+from pyload.Api import Connection
from pyload.plugins.Base import Abort
from pyload.network.CookieJar import CookieJar
from pyload.utils.fs import save_join, fs_encode
@@ -170,6 +171,7 @@ class CurlDownload(Download):
#need to create chunks
if not chunksCreated and self.chunkSupport and self.size: #will be set later by first chunk
+ self.flags ^= Connection.Resumable
if not resume:
self.info.setSize(self.size)
self.info.createChunks(chunks)