change: upgrade ngx_var module 0.4 to 0.5. (#1005)

This commit is contained in:
Janko 2019-12-27 16:53:45 +08:00 committed by YuanSheng Wang
parent 206f8b8037
commit b40d3bc8f8
4 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ function _M.match(api_ctx)
end
core.table.clear(match_opts)
match_opts.method = api_ctx.var.method
match_opts.method = api_ctx.var.request_method
match_opts.remote_addr = api_ctx.var.remote_addr
match_opts.vars = api_ctx.var
match_opts.host = api_ctx.var.host

View File

@ -99,7 +99,7 @@ function _M.match(api_ctx)
end
core.table.clear(match_opts)
match_opts.method = api_ctx.var.method
match_opts.method = api_ctx.var.request_method
match_opts.host = api_ctx.var.host
match_opts.remote_addr = api_ctx.var.remote_addr
match_opts.vars = api_ctx.var

View File

@ -89,7 +89,7 @@ function _M.rewrite(conf, ctx)
tags = {
component = "apisix",
["span.kind"] = "server",
["http.method"] = ctx.var.method,
["http.method"] = ctx.var.request_method,
["http.url"] = ctx.var.request_uri,
-- TODO: support ipv6
["peer.ipv4"] = core.request.get_remote_client_ip(ctx),

View File

@ -33,7 +33,7 @@ dependencies = {
"lua-resty-template = 1.9",
"lua-resty-etcd = 0.8",
"lua-resty-balancer = 0.02rc5",
"lua-resty-ngxvar = 0.4",
"lua-resty-ngxvar = 0.5",
"lua-resty-jit-uuid = 0.0.7",
"lua-resty-healthcheck-iresty = 2.0",
"lua-resty-jwt = 0.2.0",