Skip to content

Commit

Permalink
Correct router
Browse files Browse the repository at this point in the history
  • Loading branch information
dstepanov committed Nov 30, 2023
1 parent 488324a commit 5d9788b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ private <T, R> List<UriRouteMatch<T, R>> toMatches(String path, UriRouteInfo<Obj
@NonNull
@Override
public <T, R> Optional<UriRouteMatch<T, R>> route(@NonNull HttpMethod httpMethod, @NonNull CharSequence uri) {
for (UriRouteInfo<Object, Object> uriRouteInfo : allRoutesByMethod.getOrDefault(httpMethod, EMPTY)) {
for (UriRouteInfo<Object, Object> uriRouteInfo : methodRoutesByMethod.getOrDefault(httpMethod, EMPTY)) {
Optional<UriRouteMatch<Object, Object>> match = uriRouteInfo.match(uri.toString());
if (match.isPresent()) {
return (Optional) match;
Expand Down

0 comments on commit 5d9788b

Please sign in to comment.