Fix tests
This commit is contained in:
parent
6a83057e28
commit
dbf46dfcd8
|
@ -214,7 +214,7 @@ public class HttpDownloader extends Downloader {
|
|||
request.getSize()
|
||||
);
|
||||
return;
|
||||
} else if(request.getSoFar() == 0){
|
||||
} else if(request.getSize() > 0 && request.getSoFar() == 0){
|
||||
onFail(DownloadError.ERROR_IO_ERROR, "Download completed, but nothing was read");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue