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 {