1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

src/http.c: Revert commit d81a8d5f56

The removal of the 'redundant' condition was a failure.
Fixes: #43876
Reported-by: Sean Jensen-Grey <seanj@xyke.com>
This commit is contained in:
Tim Ruehsen 2014-12-27 23:27:20 +01:00
parent 6f62bc5cd8
commit 103cbf1751

View File

@ -2817,7 +2817,7 @@ read_header:
}
if (statcode == HTTP_STATUS_RANGE_NOT_SATISFIABLE
|| (!opt.timestamping && statcode == HTTP_STATUS_OK
|| (!opt.timestamping && hs->restval > 0 && statcode == HTTP_STATUS_OK
&& contrange == 0 && contlen >= 0 && hs->restval >= contlen))
{
/* If `-c' is in use and the file has been fully downloaded (or