Skip to content

Commit

Permalink
v0.0.4-1 - Implement fault_tolerant like rate-limiting plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
carnei-ro committed Nov 11, 2020
1 parent cba2fb9 commit f7a77a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opa/access.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit f7a77a7

Please sign in to comment.