RestClient ResponseSpec.body() when using Reactor Netty throws an exception instead of returning null if no response body is available #32805
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
Environment: Spring Web 6.1.6, Java 17
The situation is the same as in #31719, which occurs when using Reactor Netty.
The reason is that the following code throws an exception:
https://github.com/spring-projects/spring-framework/blob/v6.1.6/spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientResponse.java#L85
I believe that null should also be returned when using Reactor Netty, please let me know about a better way to implement this.
Thanks
The text was updated successfully, but these errors were encountered: