Skip to content

Commit

Permalink
fix(gateway): fix seek read length typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jan 4, 2020
1 parent 6f1204d commit 548cf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/corehttp/lazyseek.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (s *lazySeeker) Read(b []byte) (int, error) {
for s.offset != s.realOffset {
off, err := s.reader.Seek(s.offset, io.SeekStart)
if err != nil {
return 9, err
return 0, err
}
s.realOffset = off
}
Expand Down

0 comments on commit 548cf2e

Please sign in to comment.