How can I make yarp match path case insensitive?

1.1k Views Asked by At

My route is

"Routes": [
{
    "RouteId": "routegreen",
    "ClusterId": "clustergreen",
    "Match": {
        "Path": "/api/myendpoint"
    }
}

It is not matched for requests going to /api/MyEndpoint. Is it possible to make it case insensitive?

1

There are 1 best solutions below

3
On BEST ANSWER

You cannot. These are not Windows filenames - URL's included in routing are always case sensitive. You have no choice but to rename, either in the routing addresses, or your method name, to match case exactly.