mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-7233 - ResponseEntity having body, headers and HttpStatus mixed up in responseEntity.getBody()
This commit is contained in:
+4
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user