From 90fcddfb9f5824f71a94d37e73cf7ec89c034dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 19 Dec 2021 18:54:43 +0800 Subject: [PATCH] =?UTF-8?q?WAF=EF=BC=9A=E4=BC=98=E5=8C=96get302/post307?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/waf/action_get_302.go | 3 +-- internal/waf/action_post_307.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/waf/action_get_302.go b/internal/waf/action_get_302.go index 07d1301..fe1d432 100644 --- a/internal/waf/action_get_302.go +++ b/internal/waf/action_get_302.go @@ -69,10 +69,9 @@ func (this *Get302Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, requ http.Redirect(writer, request.WAFRaw(), Get302Path+"?info="+url.QueryEscape(info), http.StatusFound) - // 关闭连接 if request.WAFRaw().ProtoMajor == 1 { _ = this.CloseConn(writer) } - return true + return false } diff --git a/internal/waf/action_post_307.go b/internal/waf/action_post_307.go index f170969..3800fc6 100644 --- a/internal/waf/action_post_307.go +++ b/internal/waf/action_post_307.go @@ -90,5 +90,5 @@ func (this *Post307Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, req _ = this.CloseConn(writer) } - return true + return false }