SPR-6877 - AnnotationMethodHandlerAdapter.handleResponseBody prioritizes messageConverter over MediaType

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3045 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma
2010-03-03 11:14:30 +00:00
parent 6248566c2d
commit 22a2d53f80
@@ -2209,6 +2209,7 @@ public class ServletAnnotationControllerTests {
public void write(Object o, MediaType contentType, HttpOutputMessage outputMessage)
throws IOException, HttpMessageNotWritableException {
outputMessage.getHeaders().setContentType(contentType);
outputMessage.getBody(); // force a header write
}
}