Don't fail mistakenly with -r when we already have the whole file.

Approved by:	re (kib)
This commit is contained in:
Ruslan Ermilov 2008-10-24 13:23:54 +00:00
parent f6050b602c
commit 65ac91542d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/7/; revision=184225

View File

@ -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 {