From f7a77a77b5b77d0ee2cf23b18e5f3cb96f309b6e Mon Sep 17 00:00:00 2001 From: Leandro Carneiro Date: Wed, 11 Nov 2020 18:02:48 -0300 Subject: [PATCH] v0.0.4-1 - Implement fault_tolerant like rate-limiting plugin --- opa/access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opa/access.lua b/opa/access.lua index 16dcfb0..d791418 100644 --- a/opa/access.lua +++ b/opa/access.lua @@ -185,7 +185,7 @@ function _M.execute(conf) if (not body) or (err) then if conf.fault_tolerant then kong.response.set_header("X-Kong-Authz-Latency", (ngx.now() - start_time)) - kong.response.set_header("X-Kong-Authz-Skip", "true")) + kong.response.set_header("X-Kong-Authz-Skip", "true") return true else return kong.response.exit(500, { message = "An unexpected error occurred", error = err })