Restore calls to setLocale in MockHttpServletResponse

Issue: SPR-17284
This commit is contained in:
Rossen Stoyanchev
2018-10-05 13:50:41 -04:00
parent 6fe8cb949f
commit d551710c32
2 changed files with 2 additions and 2 deletions

View File

@@ -581,7 +581,7 @@ public class MockHttpServletResponse implements HttpServletResponse {
HttpHeaders headers = new HttpHeaders();
headers.add(HttpHeaders.CONTENT_LANGUAGE, value.toString());
Locale language = headers.getContentLanguage();
this.locale = language != null ? language : Locale.getDefault();
setLocale(language != null ? language : Locale.getDefault());
return true;
}
else {