mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
+4
@@ -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