SPR-7233 - ResponseEntity having body, headers and HttpStatus mixed up in responseEntity.getBody()
This commit is contained in:
parent
75c5405d6f
commit
d0393ea109
|
@ -839,12 +839,12 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
|
if (returnValue instanceof HttpEntity) {
|
||||||
handleResponseBody(returnValue, webRequest);
|
handleHttpEntityResponse((HttpEntity<?>) returnValue, webRequest);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
else if (returnValue instanceof HttpEntity) {
|
else if (AnnotationUtils.findAnnotation(handlerMethod, ResponseBody.class) != null) {
|
||||||
handleHttpEntityResponse((HttpEntity<?>) returnValue, webRequest);
|
handleResponseBody(returnValue, webRequest);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
else if (returnValue instanceof ModelAndView) {
|
else if (returnValue instanceof ModelAndView) {
|
||||||
|
|
Loading…
Reference in New Issue