silveric10 opened a new issue #4271:
URL: https://github.com/apache/apisix/issues/4271


   ### Issue description
   I have to plugins, A and B, plugin A's function is adding a request header, 
then plugin B can get this header to do other things. But I found that when my 
code is like this behind: 
   funciton _M.rewrite()
       ... ... 
       ngx.req.set_header("header-added-by-plugin-A",  "test_content")
       ngx.log(ngx.DEBUG, core.request.header(ctx, "header-added-by-plugin-A"))
   end
   
   The header's value in log file is nil, and plugin B also can't get this 
header's value. But on the real server, I can get this header. How can I add a 
request header in plugin A and make it useable for plugin B? Thank you
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   * 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:
   * 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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to