mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
Merge pull request #180 from samwafgo/feat_hidden
feat: hidden X-Powered-By
This commit is contained in:
@@ -545,6 +545,7 @@ func (waf *WafEngine) modifyResponse() func(*http.Response) error {
|
||||
resp.Header.Set("X-Xss-Protection", "1; mode=block")
|
||||
if global.GCONFIG_RECORD_HIDE_SERVER_HEADER == 1 {
|
||||
resp.Header.Del("Server")
|
||||
resp.Header.Del("X-Powered-By")
|
||||
}
|
||||
r := resp.Request
|
||||
if wafHttpContext, ok := r.Context().Value("waf_context").(innerbean.WafHttpContextData); ok {
|
||||
|
||||
Reference in New Issue
Block a user