kevinw66 opened a new issue #6149:
URL: https://github.com/apache/apisix/issues/6149
### Issue description
I have tried to print
```lua
core.log.warn("ngx_ctx.var: ", core.json.delay_encode(ngx.header, true))
```
and
```lua
core.log.warn("ngx_ctx.var: ", core.json.delay_encode(ngx.var.header, true))
```
The document says I can get header by this way.
But all I can see in log file is null.
https://github.com/openresty/lua-nginx-module#ngxvarvariable
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd:
depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd: `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]