From aa42704976b0019ed7b07da77186442450e67025 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 8 Jan 2018 02:03:34 +0200 Subject: [PATCH] fixing wrong offset in request (#226) --- reader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/reader.go b/reader.go index d55571fc..00c3ff32 100644 --- a/reader.go +++ b/reader.go @@ -89,6 +89,7 @@ func (r *reader) readable(off int64) (ret bool) { // How many bytes are available to read. Max is the most we could require. func (r *reader) available(off, max int64) (ret int64) { + off += r.offset for max > 0 { req, ok := r.t.offsetRequest(off) if !ok {