Merge branch '2.3.x'
This commit is contained in:
commit
922b4c04bf
|
@ -75,7 +75,7 @@ class ErrorMvcAutoConfigurationTests {
|
|||
ErrorAttributes errorAttributes = context.getBean(ErrorAttributes.class);
|
||||
DispatcherServletWebRequest webRequest = createWebRequest(new IllegalStateException("Exception message"),
|
||||
false);
|
||||
Map<String, Object> attributes = errorAttributes.getErrorAttributes(webRequest, true);
|
||||
Map<String, Object> attributes = errorAttributes.getErrorAttributes(webRequest, withAllOptions());
|
||||
attributes.put("timestamp", Clock.systemUTC().instant());
|
||||
errorView.render(attributes, webRequest.getRequest(), webRequest.getResponse());
|
||||
assertThat(webRequest.getResponse().getContentType()).isEqualTo("text/html;charset=UTF-8");
|
||||
|
|
Loading…
Reference in New Issue