WAF:优化get302/post307代码

This commit is contained in:
刘祥超
2021-12-19 18:54:43 +08:00
parent 8de791079c
commit 90fcddfb9f
2 changed files with 2 additions and 3 deletions

View File

@@ -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) http.Redirect(writer, request.WAFRaw(), Get302Path+"?info="+url.QueryEscape(info), http.StatusFound)
// 关闭连接
if request.WAFRaw().ProtoMajor == 1 { if request.WAFRaw().ProtoMajor == 1 {
_ = this.CloseConn(writer) _ = this.CloseConn(writer)
} }
return true return false
} }

View File

@@ -90,5 +90,5 @@ func (this *Post307Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, req
_ = this.CloseConn(writer) _ = this.CloseConn(writer)
} }
return true return false
} }