Update AbstractRequest.java (#5208)

This commit is contained in:
Yifan Xia
2024-08-29 12:47:09 +08:00
committed by GitHub
parent 7e31b40531
commit b060f46ccf

View File

@@ -195,7 +195,7 @@ public abstract class AbstractRequest<T> {
private final HttpResponse executeHttpRequest(HttpGet getMethod, String host) throws Exception {
SSLContext sslContext = SSLContexts.custom().loadTrustMaterial(null, (TrustStrategy) (arg0, arg1) -> true).build();
SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,
new String[] { "TLSv1" },
new String[] { "TLSv1.2" },
null,
SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
Registry registry = RegistryBuilder.create()