From fe005f87e51c605aa9c4fac826badfe7a30de585 Mon Sep 17 00:00:00 2001 From: Sebastien Blot Date: Wed, 29 Nov 2023 16:52:24 +0100 Subject: [PATCH] up --- pkg/waf/waap.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/waf/waap.go b/pkg/waf/waap.go index 54d10b67c..89c14f52f 100644 --- a/pkg/waf/waap.go +++ b/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) }