Merge branch '3.3.x' into 3.4.x

This commit is contained in:
Phillip Webb
2025-03-14 15:14:30 -07:00
3 changed files with 26 additions and 28 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;
}
}