Skip to content

Commit 1e3f3ff

Browse files
committed
[ADDENDUM][ISSUE-4] Include the OPTIONS method validation
1 parent 154effa commit 1e3f3ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lua/api-gateway/validation/factory.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353
-- It calls an internal /validate-request path which can provide any custom implementation for request validation
5454
local function _validateRequest()
5555
if (ngx.var.request_method == 'OPTIONS') then
56-
return ngx.exit(ngx.OK);
56+
return ngx.OK;
5757
end
5858

5959
local res = ngx.location.capture("/validate-request", { share_all_vars = true });

0 commit comments

Comments
 (0)