fix http code and remediation

This commit is contained in:
Sebastien Blot 2023-11-30 16:45:26 +01:00
parent 008480420c
commit 0cd2a2da20
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -184,6 +184,8 @@ func (r *WaapRunner) handleInBandInterrupt(request *waf.ParsedRequest) {
if in := request.Tx.Interruption(); in != nil {
r.logger.Debugf("inband rules matched : %d", in.RuleID)
r.WaapRuntime.Response.InBandInterrupt = true
r.WaapRuntime.Response.HTTPResponseCode = r.WaapRuntime.Config.BlockedHTTPCode
r.WaapRuntime.Response.Action = r.WaapRuntime.DefaultRemediation
err = r.WaapRuntime.ProcessOnMatchRules(request)
if err != nil {