Use request contentType/encoding in ServletServetHttpRequest/Response
ServletServerHttpRequest now falls back on the contentType and the
the characterEncoding of the ServletRequest, if the headers of the
incoming request don't specify one. Similary ServletServerHttpResponse
sets the contentType and the characterEncoding of the ServletResponse
if not already set.
This allows using the CharacterEncodingFilter to set a character
encoding where the request doesn't specify one and have it be used
in HttpMessageConverter's.
SPR-9096
pull/25/head
Arjen Poutsma14 years agocommitted byRossen Stoyanchev
@ -450,6 +450,14 @@ public class MediaType implements Comparable<MediaType> {
@@ -450,6 +450,14 @@ public class MediaType implements Comparable<MediaType> {
@ -90,14 +94,31 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
@@ -90,14 +94,31 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
@ -83,6 +83,14 @@ public class ServletServerHttpResponse implements ServerHttpResponse {
@@ -83,6 +83,14 @@ public class ServletServerHttpResponse implements ServerHttpResponse {