From 65ac91542d812e25117ed7ba262f41cc6eef2b5a Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 24 Oct 2008 13:23:54 +0000 Subject: [PATCH] Don't fail mistakenly with -r when we already have the whole file. Approved by: re (kib) --- lib/libfetch/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 132949e79799..39a8cfaa6fad 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -1064,6 +1064,7 @@ http_request(struct url *URL, const char *op, struct url_stat *us, if (url->offset == size && url->length == 0) { /* asked for 0 bytes; fake it */ offset = url->offset; + clength = -1; conn->err = HTTP_OK; break; } else {