You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/19 11:10:34 UTC

[GitHub] [apisix] kevinw66 opened a new issue #6149: request help: How to get request header in http_access_phase

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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] kevinw66 closed issue #6149: request help: How to get request header in http_access_phase

Posted by GitBox <gi...@apache.org>.
kevinw66 closed issue #6149:
URL: https://github.com/apache/apisix/issues/6149


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org