diff options
author | ru <ru@FreeBSD.org> | 2008-10-24 07:56:01 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2008-10-24 07:56:01 +0000 |
commit | 9a16e00e3669ef131963820a896cb252573228f1 (patch) | |
tree | 11698e292c550aa3380025898072390a8d79e53f /lib/libfetch | |
parent | 96ccad1cbd29d2cc63a437db3bd39247a9728320 (diff) | |
download | FreeBSD-src-9a16e00e3669ef131963820a896cb252573228f1.zip FreeBSD-src-9a16e00e3669ef131963820a896cb252573228f1.tar.gz |
Don't fail mistakenly with -r when we already have the whole file.
Reviewed by: des
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 132949e..39a8cfaa 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 { |