-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Description
Chris DaMour opened SPR-14802 and commented
When Spring MVC works with a controller result that ends up with rendering a view, the Dispatch servlet sets the locale on the response, which in turn sets the contentLanguage and thus the response Content-Language header. at this line
spring-framework/spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
Line 1228 in 69116c2
Locale locale = this.localeResolver.resolveLocale(request); |
The same thing does not happen when returning something that is handled by a MessageConverter as there is now mv by the time it gets to
spring-framework/spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java
Line 1036 in 69116c2
if (mv != null && !mv.wasCleared()) { |
Seems like this should be set somewhere during the processing of the http message converter.
Affects: 4.2.7
Issue Links:
- Add HttpHeaders getter and setter for Content-Language [SPR-14536] #19105 Add HttpHeaders getter and setter for Content-Language