From e53ece53eda0adea1f586aae832d5e7391f91801 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 31 Jan 2013 22:48:56 +0100 Subject: httpfile: fix range requests byte ranges use closed intervals (inclusive first and last byte offsets) --- sys/src/cmd/ip/httpfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3