fixing wrong offset in request (#226)
This commit is contained in:
parent
554b8e3e0c
commit
aa42704976
|
@ -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.
|
// How many bytes are available to read. Max is the most we could require.
|
||||||
func (r *reader) available(off, max int64) (ret int64) {
|
func (r *reader) available(off, max int64) (ret int64) {
|
||||||
|
off += r.offset
|
||||||
for max > 0 {
|
for max > 0 {
|
||||||
req, ok := r.t.offsetRequest(off)
|
req, ok := r.t.offsetRequest(off)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|
Loading…
Reference in New Issue