mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
Don't fail mistakenly with -r when we already have the whole file.
Approved by: re (kib)
This commit is contained in:
parent
f6050b602c
commit
65ac91542d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/7/; revision=184225
@ -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 New Issue
Block a user