From fa2febfe2c01f2af81516113f0aad2377eb5c970 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 22 Sep 2021 21:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=BA=E7=A9=BA=E6=97=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E7=BC=93=E5=AD=98=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/reader_file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/caches/reader_file.go b/internal/caches/reader_file.go index 1d3e6db..d97ec75 100644 --- a/internal/caches/reader_file.go +++ b/internal/caches/reader_file.go @@ -63,6 +63,7 @@ func (this *FileReader) Init() error { // body bodySize := int(binary.BigEndian.Uint64(buf[SizeExpiresAt+SizeStatus+SizeURLLength+SizeHeaderLength : SizeExpiresAt+SizeStatus+SizeURLLength+SizeHeaderLength+SizeBodyLength])) if bodySize == 0 { + isOk = true return nil } this.bodySize = int64(bodySize)