-
Notifications
You must be signed in to change notification settings - Fork 2.8k
bug: if route has a proxy-rewrite plugin , proxy-rewrite plugin in service does not take effect #4104
Copy link
Copy link
Closed
Description
Issue description
Environment
- apisix version (cmd:
apisix version):2.3 (docker image apache/apisix:2.3-alpine ) - OS (cmd:
uname -a):Linux 570c5064c3f9 4.9.93-linuxkit-aufs change: added doc of how to load plugin. #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 Linux ( docker ) - OpenResty / Nginx version (cmd:
nginx -Voropenresty -V): openresty/1.19.3.1 - etcd version, if have (cmd: run
curl http://127.0.0.1:9090/v1/server_infoto get the info from server-info API):3.4.9 - apisix-dashboard version, if have:2.4
- luarocks version, if the issue is about installation (cmd:
luarocks --version):luarocks 3.3.1
Minimal test code / Steps to reproduce the issue
any upstream any route
service config :
{
"update_time": 1618987372,
"id": "348075546078347976",
"upstream_id": "351385449672999625",
"plugins": {
"proxy-rewrite": {
"headers": {
"1": "2"
}
},
"serverless-pre-function": {
"phase": "log",
"functions" : ["return function() local headers_tab = ngx.req.get_headers() for k,v in pairs(headers_tab) do ngx.log(ngx.ERR,'--header--'..k..':'..v..'--header--') end end"]
}
},
"desc": "测试",
"name": "test",
"create_time": 1616998792
}
What's the actual result? (including assertion message & call stack if applicable)
headers without "1":"2"
What's the expected result?
headers with "1":"2"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels