diff --git a/sys/src/cmd/ip/httpfile.c b/sys/src/cmd/ip/httpfile.c index 5842728f4..8b4c725a6 100644 --- a/sys/src/cmd/ip/httpfile.c +++ b/sys/src/cmd/ip/httpfile.c @@ -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);