mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-03 12:37:36 +08:00
change: upgrade ngx_var
module 0.4 to 0.5. (#1005)
This commit is contained in:
parent
206f8b8037
commit
b40d3bc8f8
@ -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
|
||||
|
@ -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
|
||||
|
@ -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),
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user