bisakhmondal commented on issue #6220:
URL: https://github.com/apache/apisix/issues/6220#issuecomment-1023964028


   Hi @1657486787, could you please share your apisix route configuration? I 
was not able to reproduce the bug that you are stating. I have checked it with 
the header_name you passed, it works as expected.
   
   config
   ```bash
   curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/test",
       "plugins": {
           "request-id": {
               "header_name": "mk-id",
               "include_in_response": true
           }
       },
       "upstream": {
          "type": "roundrobin",
           "scheme": "https",
           "nodes": {
               "google.com:443": 1
           }
       }
   }'
   ```
   
   ```shell
   curl localhost:9080/test -I      
   HTTP/1.1 404 Not Found
   Content-Type: text/html; charset=UTF-8
   Content-Length: 1565
   Connection: keep-alive
   Referrer-Policy: no-referrer
   Date: Fri, 28 Jan 2022 07:40:32 GMT
   Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; 
ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; 
ma=2592000; v="46,43"
   Server: APISIX/2.12.0
   mk-id: e235cc2f-af36-4f3c-ab4c-3896d39fbe88
   
   ```
   
   Thank you.


-- 
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: [email protected]

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


Reply via email to