Search code examples
c#asp.netreverse-proxyms-yarp

How can I make yarp match path case insensitive?


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?


Solution

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