|
|
@ -218,12 +218,6 @@ class HttpFD(FileDownloader): |
|
|
|
if tmpfilename != '-': |
|
|
|
stream.close() |
|
|
|
|
|
|
|
self._hook_progress({ |
|
|
|
'downloaded_bytes': byte_counter, |
|
|
|
'total_bytes': data_len, |
|
|
|
'tmpfilename': tmpfilename, |
|
|
|
'status': 'error', |
|
|
|
}) |
|
|
|
if data_len is not None and byte_counter != data_len: |
|
|
|
raise ContentTooShortError(byte_counter, int(data_len)) |
|
|
|
self.try_rename(tmpfilename, filename) |
|
|
|