mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Don't fail mistakenly with -r when we already have the whole file.
Reviewed by: des
This commit is contained in:
parent
80ac287fe4
commit
e374393a07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184222
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue