From 5d9788b6eaca1e7aa0cb7478015aa7d90e92923e Mon Sep 17 00:00:00 2001 From: Denis Stepanov Date: Thu, 30 Nov 2023 15:27:38 +0100 Subject: [PATCH] Correct router --- router/src/main/java/io/micronaut/web/router/DefaultRouter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/main/java/io/micronaut/web/router/DefaultRouter.java b/router/src/main/java/io/micronaut/web/router/DefaultRouter.java index badcb370ea..2bfc75b0a1 100644 --- a/router/src/main/java/io/micronaut/web/router/DefaultRouter.java +++ b/router/src/main/java/io/micronaut/web/router/DefaultRouter.java @@ -377,7 +377,7 @@ private List> toMatches(String path, UriRouteInfo Optional> route(@NonNull HttpMethod httpMethod, @NonNull CharSequence uri) { - for (UriRouteInfo uriRouteInfo : allRoutesByMethod.getOrDefault(httpMethod, EMPTY)) { + for (UriRouteInfo uriRouteInfo : methodRoutesByMethod.getOrDefault(httpMethod, EMPTY)) { Optional> match = uriRouteInfo.match(uri.toString()); if (match.isPresent()) { return (Optional) match;