Allow exact path patterns to have a trailing slash
Mimic the behavior of `RouteState.pathMatchesExact()` that allows a route with an exact path without a trailing slash but where the route's trailing slash is insignificant to ignore a trailing slash in the request's path.
@@ -344,6 +344,8 @@ public class RouteImpl implements Route {
index++;
}
m.appendTail(sb);
+ if (state.isExactPath() && !state.isPathEndsWithSlash())
+ sb.append("/?");
path = sb.toString();
state = state.setGroups(groups);
