Fix status code return on err (#56)

This commit is contained in:
Laurence Jones 2024-01-22 10:32:56 +00:00 committed by GitHub
parent d493b215c4
commit 0e4983a1a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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