SPR-6877 - AnnotationMethodHandlerAdapter.handleResponseBody prioritizes messageConverter over MediaType
This commit is contained in:
parent
7f8c91a52d
commit
3c8a47bd06
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue