fix
This commit is contained in:
+4
-4
@@ -57,16 +57,16 @@ local function verifyJwtToken(token)
|
|||||||
|
|
||||||
local http = require "resty.http"
|
local http = require "resty.http"
|
||||||
local httpc = http.new()
|
local httpc = http.new()
|
||||||
local remote_url = string.format("%s/api/v1/uc/verify_jwt_token", htyuc)
|
local verify_jwt_url = string.format("%s/api/v1/uc/verify_jwt_token", htyuc)
|
||||||
|
|
||||||
ngx.log(ngx.INFO, 'HTYUC REMOTE_URL -> ' .. remote_url)
|
ngx.log(ngx.INFO, 'HTYUC VERIFY_JWT_TOKEN_URL -> ' .. verify_jwt_url)
|
||||||
|
|
||||||
local res, err = httpc:request_uri(
|
local res, err = httpc:request_uri(
|
||||||
remote_url,
|
verify_jwt_url,
|
||||||
{
|
{
|
||||||
method = "POST",
|
method = "POST",
|
||||||
headers = {
|
headers = {
|
||||||
["Host"] = "test.localhost",
|
["Host"] = $host,
|
||||||
["Authorization"] = token,
|
["Authorization"] = token,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user