This commit is contained in:
Phillip Webb
2025-03-14 13:36:04 -07:00
parent 2d6eb6618b
commit 896b5767fe
3 changed files with 26 additions and 28 deletions

View File

@@ -167,10 +167,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;
}
}