From 9c518fbb2752f6089adc6b0d727f776a2b7d2548 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 11 Jan 2024 10:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=89=B4=E6=9D=83=E8=AE=BF=E9=97=AE=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=A0=87=E7=AD=BE=E5=A2=9E=E5=8A=A0"auth:"=E5=89=8D?= =?UTF-8?q?=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/nodes/http_request_auth.go b/internal/nodes/http_request_auth.go index c6baff4..a8ac153 100644 --- a/internal/nodes/http_request_auth.go +++ b/internal/nodes/http_request_auth.go @@ -43,7 +43,7 @@ func (this *HTTPRequest) doAuth() (shouldStop bool) { if uriChanged { this.uri = newURI } - this.tags = append(this.tags, ref.AuthPolicy.Type) + this.tags = append(this.tags, "auth:"+ref.AuthPolicy.Type) return } else { // Basic Auth比较特殊 @@ -64,7 +64,7 @@ func (this *HTTPRequest) doAuth() (shouldStop bool) { } } this.writer.WriteHeader(http.StatusUnauthorized) - this.tags = append(this.tags, ref.AuthPolicy.Type) + this.tags = append(this.tags, "auth:"+ref.AuthPolicy.Type) return true } }