Skip to content

Commit

Permalink
Use null stream in ReactorNettyClientResponse if no body is available
Browse files Browse the repository at this point in the history
Closes gh-32805
  • Loading branch information
poutsma committed Jun 13, 2024
1 parent 24c8dfe commit 6f32ff4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f32ff4

Please sign in to comment.