Browse Source

SPR-6877 - AnnotationMethodHandlerAdapter.handleResponseBody prioritizes messageConverter over MediaType

pull/23217/head
Arjen Poutsma 15 years ago
parent
commit
3c8a47bd06
  1. 1
      org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/annotation/ServletAnnotationControllerTests.java

1
org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/annotation/ServletAnnotationControllerTests.java

@ -2209,6 +2209,7 @@ public class ServletAnnotationControllerTests { @@ -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…
Cancel
Save