summaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.c b/src/http.c
index ee17bce..bc2cfd0 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