diff options
author | estaban <babedoudi@yahoo.fr> | 2014-08-30 19:10:35 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-08-30 19:10:35 +0200 |
commit | e662a12012a8528edf307a437f1b9677a53d96df (patch) | |
tree | 5fa5b930472c28beafcfb56f442f3aa09622b1e9 /module/network | |
parent | __init__ shebangs (diff) | |
download | pyload-e662a12012a8528edf307a437f1b9677a53d96df.tar.xz |
Fix resume and progress column for some FTP files
Diffstat (limited to 'module/network')
-rw-r--r-- | module/network/HTTPChunk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index 886306233..719c3ed0b 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -207,7 +207,7 @@ class HTTPChunk(HTTPRequest): # as first chunk, we will parse the headers if not self.range and self.header.endswith("\r\n\r\n"): self.parseHeader() - elif not self.range and buf.startswith("150") and "data connection" in buf: #ftp file size parsing + elif not self.range and buf.startswith("150") and "data connection" in buf.lower(): #: ftp file size parsing size = search(r"(\d+) bytes", buf) if size: self.p.size = int(size.group(1)) |