From be87792dfa0aa7e5f3d60fb4d0976b5a154099b5 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 26 Jan 2021 20:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9Www-Authenticate=20H?= =?UTF-8?q?eader=E7=9A=84=E4=BF=AE=E6=AD=A3=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E6=BA=90=E7=AB=99=E6=97=A0=E6=B3=95=E8=AF=86?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index cf605bc..daaf985 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -987,6 +987,9 @@ func (this *HTTPRequest) fixRequestHeader(header http.Header) { header.Del(k) k = strings.ReplaceAll(k, "-Websocket-", "-WebSocket-") header[k] = v + } else if k == "Www-Authenticate" { + header.Del(k) + header["WWW-Authenticate"] = v } } }