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 07:45:03 UTC
[GitHub] [apisix] bisakhmondal commented on issue #6220: bug: Setting head-name in "request-id" plugin has no effect
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org