We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc7441f commit 61b52fdCopy full SHA for 61b52fd
apisix/plugins/chaitin-waf.lua
@@ -330,8 +330,8 @@ local function do_access(conf, ctx)
330
331
local code = 200
332
extra_headers[HEADER_CHAITIN_WAF_STATUS] = code
333
- if result then
334
- if result.status then
+ if result and result.status and result.status ~= 200 then
+ if result.event_id then
335
code = result.status
336
337
extra_headers[HEADER_CHAITIN_WAF_ACTION] = "reject"
0 commit comments