From 42f8c93e766aef5cc4c747a6d9d560ca58ea6836 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 1 Oct 2021 16:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=86=85=E5=AE=B9=E4=B9=9F?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_cache.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/nodes/http_request_cache.go b/internal/nodes/http_request_cache.go index 8b78fae..6058b3c 100644 --- a/internal/nodes/http_request_cache.go +++ b/internal/nodes/http_request_cache.go @@ -348,6 +348,8 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) { return true } } else { // 没有Range + this.writer.PrepareCompression(reader.BodySize()) + this.writer.WriteHeader(reader.Status()) err = reader.ReadBody(buf, func(n int) (goNext bool, err error) {