Commit 3b0e4141 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Add default content type handling in GetAttackLogRsp method to ensure...

Add default content type handling in GetAttackLogRsp method to ensure consistent response formatting for WAF logs.
parent c039b317
......@@ -1163,6 +1163,11 @@ func (s *wafService) GetAttackLogRsp(ctx context.Context, uuid string, length ui
rspData = wafDetection.RspPkg[0:length]
intact = false
}
contentType := wafDetection.RspContentType
if contentType == "" {
contentType = "text/html"
}
attackRsp := &AttackRsp{
Uuid: wafDetection.ID,
Intact: intact,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment