diff --git a/src/http.c b/src/http.c index ee17bce1..bc2cfd09 100644 --- a/src/http.c +++ b/src/http.c @@ -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