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

View File

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