vincentwc opened a new issue #4235:
URL: https://github.com/apache/apisix/issues/4235


   ### Issue description
    first, create route show as below:
   `{
       "desc": "my-product-demo-85",
           "labels":{
           "demo_env" : "prod",
           "prod_env" : "prod"
       },
       "uri": "/product/hello",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "ip:8085": 1
           }
       }
   }`
   second: pacth a response-rewrite plugin toi this route:
   `{
       "plugins": {
               "response-rewrite": {
               "body": "{\"code\":\"ok\",\"message\":\"new json body\"}",
               "status_code" : 205,
               "headers": {
                   "X-Server-id": 3,
                   "X-Server-status": "on",
                   "Content-Type" : "multipart/form-data"
               }
   
           }
       }
   }`
   
   third: send request to the route:
   i find the header info has changed to response-rewrite info such as 
status_code,headers etc.
   but body info not changed, this si my body response: "hello product 
Controller"
    why ?
   
   
   ### 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:
   * 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:
us...@infra.apache.org


Reply via email to