jiayx opened a new issue #4252:
URL: https://github.com/apache/apisix/issues/4252


   ### Issue description
   
   The proxy-rewrite plugin can't rewrite "X-Forwarded-Proto" header
   
   ### Environment
   
   * apisix version 2.5 with docker
   * docker image apache/apisix:2.5-centos
   * etcd version 3.4
   * apisix-dashboard 2.6
   
   ### Minimal test code / Steps to reproduce the issue
   
   Bug report without steps to reproduce will be ignored or closed.
   
   1. Start a http server as upstream, http server print the request header. 
[http server 
code](https://gist.github.com/mdonkers/63e115cc0c79b4f6b8b3a6b797e485c7)
   
   2. Create a route with the "proxy-rewrite" plugin, upstream to the step 1 
server, with the following plugin configuration
   ```json
   {
     "proxy-rewrite": {
       "headers": {
         "X-Forwarded-Proto": "https"
       }
     }
   }
   ```
   3. Make a request with http, and check server's log
   
   
   ### What's the actual result?
   X-Forwarded-Proto: http
   
   ### What's the expected result?
   X-Forwarded-Proto: https
   


-- 
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:
us...@infra.apache.org


Reply via email to