From 103cbf1751de74b5761f5daf8e657a2c589a0fc9 Mon Sep 17 00:00:00 2001 From: Tim Ruehsen Date: Sat, 27 Dec 2014 23:27:20 +0100 Subject: [PATCH] src/http.c: Revert commit d81a8d5f56fca2746c4ad83d764bd24adcfbe927 The removal of the 'redundant' condition was a failure. Fixes: #43876 Reported-by: Sean Jensen-Grey --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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