From 02c06adf6505ac8d03554b10f384d9ef242629e7 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 26 Mar 2022 22:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B7=AF=E7=94=B1=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=AF=B7=E6=B1=82=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index 8f9d87c..db5122c 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -474,7 +474,10 @@ func (this *HTTPRequest) configureWeb(web *serverconfigs.HTTPWebConfig, isTop bo // request scripts if web.RequestScripts != nil { if this.web.RequestScripts == nil { - this.web.RequestScripts = web.RequestScripts + this.web.RequestScripts = &serverconfigs.HTTPRequestScriptsConfig{ + InitGroup: web.RequestScripts.InitGroup, + RequestGroup: web.RequestScripts.RequestGroup, + } // 不要直接赋值,需要复制,防止在运行时被修改 } else { if web.RequestScripts.InitGroup != nil && (web.RequestScripts.InitGroup.IsPrior || isTop) { if this.web.RequestScripts == nil {