mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
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