Use null stream in ReactorNettyClientResponse if no body is available
Closes gh-32805
This commit is contained in:
parent
24c8dfea1f
commit
6f32ff489a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue