Fix tests

This commit is contained in:
Martin Fietz 2015-06-04 09:40:27 +02:00
parent 6a83057e28
commit dbf46dfcd8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}