ref: 5c73236ad1235b857433fc905b1845a908c5b3a6
parent: 6cf1143a3c4db68007abd4f40fcbd0778a277ceb
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Jan 31 17:48:56 EST 2013
httpfile: fix range requests byte ranges use closed intervals (inclusive first and last byte offsets)
--- a/sys/src/cmd/ip/httpfile.c
+++ b/sys/src/cmd/ip/httpfile.c
@@ -265,7 +265,7 @@
"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);
--
⑨