Merge branch '3.4.x'

This commit is contained in:
Phillip Webb
2025-03-14 15:15:33 -07:00
2 changed files with 25 additions and 27 deletions

View File

@@ -179,10 +179,7 @@ abstract class HttpClientTransport implements HttpTransport {
return null;
}
try (InputStream stream = entity.getContent()) {
if (stream == null) {
return null;
}
return stream.readAllBytes();
return (stream != null) ? stream.readAllBytes() : null;
}
}