mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
d1950f598a
Prior to this commit, the `DefaultRestClient` implementation would look at the type of the returned value to decide whether the HTTP response stream needs to be closed before returning. As of gh-36380, this checks for `InputStream` and `InputStreamResource` return types, effectively not considering `ResponseEntity<InputStream>` and variants. This commit ensures that `ResponseEntity` types are unwrapped before checking for streaming types. Fixes gh-36492