Use null stream in ReactorNettyClientResponse if no body is available

Closes gh-32805
This commit is contained in:
Arjen Poutsma 2024-06-13 11:10:50 +02:00
parent 24c8dfea1f
commit 6f32ff489a
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ final class ReactorNettyClientResponse implements ClientHttpResponse {
} }
if (body == null) { if (body == null) {
throw new IOException("Could not receive body"); body = InputStream.nullInputStream();
} }
this.body = body; this.body = body;
return body; return body;