SPR-7381 - HTTP headers returned as part of ResponseEntity(MultiValueMap<String, String> headers, HttpStatus statusCode) are ignored when using this constructor
This commit is contained in:
@@ -938,6 +938,10 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator
|
||||
if (body != null) {
|
||||
writeWithMessageConverters(body, inputMessage, outputMessage);
|
||||
}
|
||||
else {
|
||||
// flush headers
|
||||
outputMessage.getBody();
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Reference in New Issue
Block a user