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;
}
}

View File

@@ -96,7 +96,7 @@ dependencies {
optional("org.yaml:snakeyaml")
optional("org.jetbrains.kotlin:kotlin-reflect")
optional("org.jetbrains.kotlin:kotlin-stdlib")
testFixturesCompileOnly("jakarta.servlet:jakarta.servlet-api")
testFixturesCompileOnly("org.mockito:mockito-core")
testFixturesCompileOnly("org.springframework:spring-web")