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 19:28:11 UTC

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

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


   Hey @1657486787,  I just looked into the configuration, you are having multilevel nesting in `request-id` plugin. and you are putting all the configuration inside the second level request-id. It doesn't make any sense.
   > "request-id": {
   ~~"disable": false,~~ // delete it
   ~~"request-id": {~~ // request-id inside request-id won't be decoded
   "header_name": "mk-id",
   "include_in_response": true
   ~~}~~
   },
   
   Replace it with:
   ```shell
   "request-id": {
       "header_name": "mk-id",
       "include_in_response": true
   }
   ```
   
   Also, why are you putting the `disable:false` inside all the plugin configurations. It doesn't make any sense. Whenever confused, always consider the documentation [see https://apisix.apache.org/docs/apisix/plugins/request-id/ for request id].
   
    


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