Flush headers after null StreamingResponseBody
Issue: SPR-14315
This commit is contained in:
committed by
Rossen Stoyanchev
parent
71463fb399
commit
7e95cd8b4e
@@ -74,6 +74,8 @@ public class StreamingResponseBodyReturnValueHandler implements HandlerMethodRet
|
||||
returnValue = responseEntity.getBody();
|
||||
if (returnValue == null) {
|
||||
mavContainer.setRequestHandled(true);
|
||||
// Ensure headers are flushed
|
||||
outputMessage.flush();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user