mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 09:39:04 +00:00
SPR-6877 - AnnotationMethodHandlerAdapter.handleResponseBody prioritizes messageConverter over MediaType
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