Skip to content

Commit

Permalink
Uses MvcUtils.setRouteId() rather than set attr by hand.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Jul 13, 2023
1 parent afa110a commit 9f39a02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public static Function<ServerRequest, ServerRequest> rewritePath(String regexp,

public static Function<ServerRequest, ServerRequest> routeId(String routeId) {
return request -> {
request.attributes().put(MvcUtils.GATEWAY_ROUTE_ID_ATTR, routeId);
MvcUtils.setRouteId(request, routeId);
return request;
};
}
Expand Down

0 comments on commit 9f39a02

Please sign in to comment.