This commit is contained in:
2021-11-28 16:04:46 +08:00
parent 405cc14d00
commit c0197ea1c4
+4 -4
View File
@@ -57,16 +57,16 @@ local function verifyJwtToken(token)
local http = require "resty.http"
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(
remote_url,
verify_jwt_url,
{
method = "POST",
headers = {
["Host"] = "test.localhost",
["Host"] = $host,
["Authorization"] = token,
},
}