mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Restore calls to setLocale in MockHttpServletResponse
Issue: SPR-17284
This commit is contained in:
+1
-1
@@ -600,7 +600,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 if (HttpHeaders.SET_COOKIE.equalsIgnoreCase(name)) {
|
||||
|
||||
Reference in New Issue
Block a user