only report a successful download, if the downloading actually got past the headers

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4560 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-03-08 20:36:49 +00:00
parent fc8348b5a5
commit 67d892ed05

View file

@ -388,7 +388,7 @@ __declspec(dllexport) void download (HWND parent,
lstrcpyn(url, get->geterrorstr(), sizeof(url));
error = url;
} else if (st == 1) {
if (sofar < cl)
if (sofar < cl || get->get_status () != 2)
error="download incomplete";
else
{