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/28 09:12:56 UTC

[GitHub] [apisix] 1657486787 edited a comment on issue #6220: bug: Setting head-name in "request-id" plugin has no effect

1657486787 edited a comment on issue #6220:
URL: https://github.com/apache/apisix/issues/6220#issuecomment-1024022252


   > 
   
   1. My configuration information is as follows:
   {
     "uri": "/dw2/*",
     "name": "r02",
     "methods": [
       "GET"
     ],
     "plugins": {
       "limit-req": {
         "burst": 1,
         "disable": false,
         "key": "1",
         "key_type": "var",
         "nodelay": false,
         "rate": 1,
         "rejected_code": 505,
         "rejected_msg": "请求太多了111,稍后重试..."
       },
       "request-id": {
         "disable": false,
         "request-id": {
           "header_name": "mk-id",
           "include_in_response": true
         }
       },
       "response-rewrite": {
         "body_base64": false,
         "disable": false,
         "headers": {
           "X-Server-balancer_addr": "$balancer_ip:$balancer_port",
           "X-Server-id": 3,
           "X-Server-status": "on",
           "body": "{\"code\":\"ok\",\"message\":\"new json body\"}"
         },
         "vars": [
           [
             "status",
             "==",
             200
           ]
         ]
       }
     },
     "upstream_id": "392266237876372160",
     "status": 1
   }
   
   2.  The result is as follows:
   
   ![image](https://user-images.githubusercontent.com/44360272/151519325-0ab39839-02a9-4c08-9345-bb26ea6ceeae.png)
   
   


-- 
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