diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-05-01 10:45:56 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-05-01 10:45:56 +0200 |
commit | 1b1246286cd909189a4ef9d6d87ebaee188431a8 (patch) | |
tree | 5a201c5b823754213d7d8461383940f189d52650 | |
parent | trying to fix curl chunk (diff) | |
download | pyload-1b1246286cd909189a4ef9d6d87ebaee188431a8.tar.xz |
fixed downloads
-rw-r--r-- | pyload/plugins/network/CurlChunk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugins/network/CurlChunk.py b/pyload/plugins/network/CurlChunk.py index b49ec653f..cfe0d5b08 100644 --- a/pyload/plugins/network/CurlChunk.py +++ b/pyload/plugins/network/CurlChunk.py @@ -25,7 +25,7 @@ from time import sleep import codecs import pycurl -from pyload.plugins.Request import Request +from pyload.network.HeaderDict import HeaderDict from pyload.utils.fs import fs_encode, fs_decode, safe_filename from CurlRequest import CurlRequest @@ -124,7 +124,6 @@ re_filename = re.compile(r"filename(?P<type>=|\*=(?P<enc>.+)'')(?P<name>.*)", re class CurlChunk(CurlRequest): def __init__(self, id, parent, range=None, resume=False): - Request.__init__(self, None, parent.getContext()[0]) self.setContext(*parent.getContext()) self.id = id @@ -141,6 +140,7 @@ class CurlChunk(CurlRequest): self.header = "" self.headerParsed = False #indicates if the header has been processed + self.headers = HeaderDict() self.fp = None #file handle |