We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e1f05f + 1e3f3ff commit 380c5c2Copy full SHA for 380c5c2
src/lua/api-gateway/validation/factory.lua
@@ -53,7 +53,7 @@ end
53
-- It calls an internal /validate-request path which can provide any custom implementation for request validation
54
local function _validateRequest()
55
if (ngx.var.request_method == 'OPTIONS') then
56
- return ngx.exit(ngx.OK);
+ return ngx.OK;
57
end
58
59
local res = ngx.location.capture("/validate-request", { share_all_vars = true });
@@ -64,7 +64,7 @@ local function _validateRequest()
64
65
66
if res.status == ngx.HTTP_OK then
67
68
69
70
if res.status == ngx.HTTP_FORBIDDEN or res.status == ngx.HTTP_UNAUTHORIZED or res.status == ngx.HTTP_BAD_REQUEST or tonumber(res.status) > 599 then
0 commit comments