Kong 1.4.x - Fail to create a route with "headers" parameter

When I have a REST requst for create a route, there is a problem said:


And my api is:
curl -d 'name=testRoute&headers={"X-Another-Header"="test"}' http://localhost:8001/services/{{serviceId}}/routes

So what’s the correct format of “headers”?

Kong Admin API - Add Route

curl -d 'name=testRoute&headers.X-Another-Header[]=test' http://localhost:8001/services/{{serviceId}}/routes

Problem solved by the format like this:
headers.X-Another-Header[]=test

Thanks.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ