From 6cb03d4dfd87770fcce330cbfe5e36126c63339a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 3 Jan 2020 18:07:20 -0800 Subject: [PATCH] fix(gateway): fix seek read length typo --- core/corehttp/lazyseek.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/corehttp/lazyseek.go b/core/corehttp/lazyseek.go index 4c5624bcf..2a379dc91 100644 --- a/core/corehttp/lazyseek.go +++ b/core/corehttp/lazyseek.go @@ -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 }