Skip to content

Commit

Permalink
Fix HTTP Client 5 presence check.
Browse files Browse the repository at this point in the history
See gh-727, see gh-728
  • Loading branch information
mp911de committed Oct 18, 2022
1 parent 374d649 commit 169c8eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public class ClientHttpRequestFactoryFactory {
@SuppressWarnings("FieldMayBeFinal") // allow setting via reflection.
private static Log logger = LogFactory.getLog(ClientHttpRequestFactoryFactory.class);

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

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

Expand Down

0 comments on commit 169c8eb

Please sign in to comment.