部分WAF动作输出内容时增加自定义报头

This commit is contained in:
GoEdgeLab
2023-06-12 18:07:07 +08:00
parent 783e0d2711
commit 15806769cf
6 changed files with 22 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ func (this *Get302Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, requ
return true, false
}
request.ProcessResponseHeaders(writer.Header(), http.StatusFound)
http.Redirect(writer, request.WAFRaw(), Get302Path+"?info="+url.QueryEscape(info), http.StatusFound)
flusher, ok := writer.(http.Flusher)