Merge pull request #17596 from adavid9

* pr/17596:
  Replace deprecated media type

Closes gh-17596
This commit is contained in:
Stephane Nicoll 2019-07-21 18:49:33 +02:00
commit 82ecf3c217

View File

@ -131,7 +131,7 @@ public class DefaultErrorWebExceptionHandler extends AbstractErrorWebExceptionHa
protected Mono<ServerResponse> renderErrorResponse(ServerRequest request) {
boolean includeStackTrace = isIncludeStackTrace(request, MediaType.ALL);
Map<String, Object> error = getErrorAttributes(request, includeStackTrace);
return ServerResponse.status(getHttpStatus(error)).contentType(MediaType.APPLICATION_JSON_UTF8)
return ServerResponse.status(getHttpStatus(error)).contentType(MediaType.APPLICATION_JSON)
.body(BodyInserters.fromObject(error));
}