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

Reviewed by:	des
This commit is contained in:
Ruslan Ermilov 2008-10-24 07:56:01 +00:00
parent 80ac287fe4
commit e374393a07

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 {