diff --git a/spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientResponse.java b/spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientResponse.java index 4c314d133839..9d1b18a25252 100644 --- a/spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientResponse.java +++ b/spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientResponse.java @@ -88,7 +88,7 @@ public InputStream getBody() throws IOException { } if (body == null) { - throw new IOException("Could not receive body"); + body = InputStream.nullInputStream(); } this.body = body; return body;