httpfile: fix range requests
byte ranges use closed intervals (inclusive first and last byte offsets)
This commit is contained in:
parent
5a93a2a983
commit
e53ece53ed
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ getrange(Block *b)
|
|||
"Accept-Encoding:\r\n"
|
||||
"Range: bytes=%lld-%lld\r\n"
|
||||
"\r\n",
|
||||
get, host, b->off, b->off+b->len);
|
||||
get, host, b->off, b->off+b->len-1);
|
||||
Bflush(&netbio);
|
||||
|
||||
status = readhttphdr(&netbio, nil);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue