From 6b14312f14a20df46b1e14c3db1f56faa8c17ab1 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 14 Nov 2021 08:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E5=90=91=E4=BB=A3=E7=90=86=E6=BA=90?= =?UTF-8?q?=E7=AB=99=E9=94=99=E8=AF=AF=E6=97=B6=E6=8F=90=E7=A4=BA=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E7=9A=84URL?= 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 61fbdba..5115db7 100644 --- a/internal/nodes/http_request_reverse_proxy.go +++ b/internal/nodes/http_request_reverse_proxy.go @@ -39,7 +39,7 @@ func (this *HTTPRequest) doReverseProxy() { origin := this.reverseProxy.NextOrigin(requestCall) requestCall.CallResponseCallbacks(this.writer) if origin == nil { - err := errors.New(this.requestPath() + ": no available backends for reverse proxy") + err := errors.New(this.requestFullURL() + ": no available origin sites for reverse proxy") remotelogs.Error("HTTP_REQUEST_REVERSE_PROXY", err.Error()) this.write50x(err, http.StatusBadGateway) return @@ -59,7 +59,7 @@ func (this *HTTPRequest) doReverseProxy() { // 处理Scheme if origin.Addr == nil { - err := errors.New(this.requestPath() + ": origin '" + strconv.FormatInt(origin.Id, 10) + "' does not has a address") + err := errors.New(this.requestFullURL() + ": origin '" + strconv.FormatInt(origin.Id, 10) + "' does not has a address") remotelogs.Error("HTTP_REQUEST_REVERSE_PROXY", err.Error()) this.write50x(err, http.StatusBadGateway) return