SPR-7233 - ResponseEntity having body, headers and HttpStatus mixed up in responseEntity.getBody()
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3376 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
c9ca1d03e2
commit
882f8cfce5
|
|
@ -839,12 +839,12 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator
|
|||
}
|
||||
}
|
||||
|
||||
if (AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
|
||||
handleResponseBody(returnValue, webRequest);
|
||||
if (returnValue instanceof HttpEntity) {
|
||||
handleHttpEntityResponse((HttpEntity<?>) returnValue, webRequest);
|
||||
return null;
|
||||
}
|
||||
else if (returnValue instanceof HttpEntity) {
|
||||
handleHttpEntityResponse((HttpEntity<?>) returnValue, webRequest);
|
||||
else if (AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
|
||||
handleResponseBody(returnValue, webRequest);
|
||||
return null;
|
||||
}
|
||||
else if (returnValue instanceof ModelAndView) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue