fixing wrong offset in request (#226)

This commit is contained in:
Denis 2018-01-08 02:03:34 +02:00 committed by Matt Joiner
parent 554b8e3e0c
commit aa42704976
1 changed files with 1 additions and 0 deletions

View File

@ -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 {