mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
0cc79ba366
Prior to this commit, the `IntrospectingClientHttpResponse` would try and read the HTTP response stream in order to check for the presence of a non-empty message body. Developers reported that in some cases, an `EOFException` is thrown instead of returning -1 from the `read()` method. This commit ensures that this case is taken into account and that we report the response as an empty body in these cases. Closes gh-35361