diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-31 22:48:56 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-01-31 22:48:56 +0100 |
commit | e53ece53eda0adea1f586aae832d5e7391f91801 (patch) | |
tree | a07e8469f1789281f4ac66f48025f0983b47fe68 /sys/src/cmd/ip | |
parent | 5a93a2a9837e98ebbce8de81f8d933d213134e8d (diff) |
httpfile: fix range requests
byte ranges use closed intervals (inclusive first
and last byte offsets)
Diffstat (limited to 'sys/src/cmd/ip')
-rw-r--r-- | sys/src/cmd/ip/httpfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |