freemindcore opened a new issue, #9009:
URL: https://github.com/apache/apisix/issues/9009
### Current Behavior
I am trying to remove header (server) but failed.
This is my config:
"response-rewrite": {
"headers": {
"server": "",
"x-server-new": "worked"
}
}
The header x-server-new will be added successfully though.
### Expected Behavior
"server" header should be removed.
### Error Logs
_No response_
### Steps to Reproduce
1. Run APISix
2. Set a route, add the response-rewrite plugin with the above config to it
3. Test
### Environment
- APISIX version (run `apisix version`):
_/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua version
2.15.1_
- Operating system (run `uname -a`):
_Linux apisix-5d5dfc55d8-558hc XXXX.amzn2.x86_64 SMP Fri Dec 9 12:54:21 UTC
2022 x86_64 GNU/Linux_
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
_nginx version: openresty/1.21.4.1
built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
built with OpenSSL 1.1.1n 15 Mar 2022 (running with OpenSSL 1.1.1s 1 Nov
2022)_
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]