mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-02 12:39:14 +00:00
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:
+1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user