Merge pull request #17919 from dreis2211

* gh-17919:
  Correct WebFlux response body method

Closes gh-17919
pull/17939/head
Andy Wilkinson 5 years ago
commit c7e18ee48f

@ -171,7 +171,7 @@ public abstract class AbstractErrorWebExceptionHandler implements ErrorWebExcept
} }
Resource resource = resolveResource(viewName); Resource resource = resolveResource(viewName);
if (resource != null) { if (resource != null) {
return responseBody.bodyValue(BodyInserters.fromResource(resource)); return responseBody.body(BodyInserters.fromResource(resource));
} }
return Mono.empty(); return Mono.empty();
} }

Loading…
Cancel
Save