From 65bbc828f0330131cd8fc8d275febcd43db2cb3b Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 28 Jan 2024 09:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF403/404=E9=87=8D=E8=AF=95?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E4=BB=8D=E7=84=B6=E4=BF=9D=E7=95=99=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E6=AC=A1=E8=AF=B7=E6=B1=82=E7=9A=84=E6=BA=90?= =?UTF-8?q?=E7=AB=99=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_reverse_proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/nodes/http_request_reverse_proxy.go b/internal/nodes/http_request_reverse_proxy.go index 0f2beb0..3021138 100644 --- a/internal/nodes/http_request_reverse_proxy.go +++ b/internal/nodes/http_request_reverse_proxy.go @@ -93,8 +93,8 @@ func (this *HTTPRequest) doOriginRequest(failedOriginIds []int64, failedLnNodeId if origin == nil { origin = this.reverseProxy.NextOrigin(requestCall) if origin != nil && origin.Id > 0 && (*failStatusCode >= 403 && *failStatusCode <= 404) && lists.ContainsInt64(failedOriginIds, origin.Id) { - this.writeCode(*failStatusCode, "", "") - return + shouldRetry = false + isLastRetry = true } } requestCall.CallResponseCallbacks(this.writer)