Skip to content

Commit 93890a6

Browse files
Cosmetic code reordering to improve GitHub Diff layout
1 parent 42cf22f commit 93890a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lua/api-gateway/validation/oauth2/oauthTokenValidator.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ function _M:validateOAuthToken(validation_config)
171171
validation_config = validation_config or {}
172172
validation_config.RESPONSES = validation_config.RESPONSES or RESPONSES;
173173

174-
local oauth_token = validation_config.authtoken or ngx.var.authtoken
175174
local oauth_host = ngx.var.oauth_host
175+
local oauth_token = validation_config.authtoken or ngx.var.authtoken
176176

177177
if oauth_token == nil or oauth_token == "" then
178178
return validation_config.RESPONSES.MISSING_TOKEN.error_code, cjson.encode(validation_config.RESPONSES.MISSING_TOKEN)

0 commit comments

Comments
 (0)