Fixes code example lambda.

Fixes gh-2485
This commit is contained in:
spencergibb
2023-01-12 11:54:02 -05:00
parent 7c3729a84c
commit f6d9692d82

View File

@@ -1138,7 +1138,7 @@ public RouteLocator routes(RouteLocatorBuilder builder) {
.route("rewrite_request_obj", r -> r.host("*.rewriterequestobj.org")
.filters(f -> f.prefixPath("/httpbin")
.modifyRequestBody(String.class, Hello.class, MediaType.APPLICATION_JSON_VALUE,
(exchange, s) -> return Mono.just(new Hello(s.toUpperCase())))).uri(uri))
(exchange, s) -> Mono.just(new Hello(s.toUpperCase())))).uri(uri))
.build();
}