Skip to content

Commit 169c8eb

Browse files
committed
Fix HTTP Client 5 presence check.
See gh-727, see gh-728
1 parent 374d649 commit 169c8eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-vault-core/src/main/java/org/springframework/vault/client/ClientHttpRequestFactoryFactory.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public class ClientHttpRequestFactoryFactory {
8989
@SuppressWarnings("FieldMayBeFinal") // allow setting via reflection.
9090
private static Log logger = LogFactory.getLog(ClientHttpRequestFactoryFactory.class);
9191

92-
private static final boolean HTTP_COMPONENTS_PRESENT = isPresent("org.apache.http.client.HttpClient");
92+
private static final boolean HTTP_COMPONENTS_PRESENT = isPresent(
93+
"org.apache.hc.client5.http.impl.classic.HttpClientBuilder");
9394

9495
private static final boolean OKHTTP3_PRESENT = isPresent("okhttp3.OkHttpClient");
9596

0 commit comments

Comments
 (0)