From b1e609b2b404aba3d2d762801990714b1033ce31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 7 May 2024 16:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E5=A4=84=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= 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, 1 insertion(+), 1 deletion(-) diff --git a/internal/nodes/http_request_cache.go b/internal/nodes/http_request_cache.go index 4ab030d..6920d85 100644 --- a/internal/nodes/http_request_cache.go +++ b/internal/nodes/http_request_cache.go @@ -725,7 +725,7 @@ func (this *HTTPRequest) tryPartialReader(storage caches.StorageInterface, key s r2, findOk := partialReader.Ranges().FindRangeAtPosition(r.Start()) if findOk && r2.Length() >= (256<<10) /* worth reading */ { isOk = true - ranges[0] = [2]int64{r.Start(), partialReader.BodySize()} // Content-Range: bytes 0-[BODY_LENGTH] + ranges[0] = [2]int64{r.Start(), partialReader.BodySize()} // Content-Range: bytes 0-[CONTENT_LENGTH - 1]/CONTENT_LENGTH pReader.SetNextReader(NewHTTPRequestPartialReader(this, r2.End(), partialReader)) return pReader, ranges, r2.End() - 1 /* not include last byte */, true