diff --git a/lib/crowdsec.lua b/lib/crowdsec.lua index ddcf874..8d07603 100644 --- a/lib/crowdsec.lua +++ b/lib/crowdsec.lua @@ -540,7 +540,7 @@ function csmod.AppSecCheck(ip) if err ~= nil then ngx.log(ngx.ERR, "Fallback because of err: " .. err) - return ok, remediation, err + return ok, remediation, status_code, err end if res.status == 200 then