@ -40,8 +40,7 @@ public class CachedBodyOutputMessage implements ReactiveHttpOutputMessage {
@@ -40,8 +40,7 @@ public class CachedBodyOutputMessage implements ReactiveHttpOutputMessage {
privatebooleancached=false;
privateFlux<DataBuffer>body=Flux
.error(newIllegalStateException("The body is not set. "+"Did handling complete with success?"));
@ -77,6 +76,9 @@ public class CachedBodyOutputMessage implements ReactiveHttpOutputMessage {
@@ -77,6 +76,9 @@ public class CachedBodyOutputMessage implements ReactiveHttpOutputMessage {
*@returnbodyas{@linkFlux}
*/
publicFlux<DataBuffer>getBody(){
if(body==null){
returnFlux.error(newIllegalStateException("The body is not set. "+"Did handling complete with success?"));