Skip to content

Commit

Permalink
change: upgrade ngx_var module 0.4 to 0.5. (apache#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuaijinchao authored and SaberMaster committed Jun 30, 2020
1 parent 3ad79d4 commit 8cf732b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/apisix/http/router/radixtree_host_uri.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lua/apisix/http/router/radixtree_uri.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lua/apisix/plugins/zipkin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion rockspec/apisix-master-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8cf732b

Please sign in to comment.