Sebastien Blot vor 1 Jahr
Ursprung
Commit
fe005f87e5
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. 0 2
      pkg/waf/waap.go

+ 0 - 2
pkg/waf/waap.go

@@ -441,13 +441,11 @@ func (w *WaapRuntimeConfig) SetAction(params ...any) (any, error) {
 		//@tko how should we handle this ? it seems bouncer only understand bans, but it might be misleading ?
 	case "deny", "ban", "block":
 		w.Response.Action = "ban"
-		w.Response.HTTPResponseCode = w.Config.BlockedHTTPCode
 	case "log":
 		w.Response.Action = action
 		w.Response.HTTPResponseCode = w.Config.PassedHTTPCode
 	case "captcha":
 		w.Response.Action = action
-		w.Response.HTTPResponseCode = w.Config.BlockedHTTPCode
 	default:
 		return nil, fmt.Errorf("unknown action %s", action)
 	}