Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "feature",
"category": "Apache5 HTTP Client",
"contributor": "",
"description": "Update `httpclient5` to 5.6 and `httpcore5` to 5.4."
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy;
import org.apache.hc.client5.http.ssl.HostnameVerificationPolicy;
import org.apache.hc.core5.http.protocol.HttpContext;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.http.apache5.internal.net.SdkSslSocket;
Expand All @@ -33,7 +34,7 @@ public class SdkTlsSocketFactory extends DefaultClientTlsStrategy {
private static final Logger log = Logger.loggerFor(SdkTlsSocketFactory.class);

public SdkTlsSocketFactory(SSLContext sslContext, HostnameVerifier hostnameVerifier) {
super(sslContext, hostnameVerifier);
super(sslContext, HostnameVerificationPolicy.CLIENT, hostnameVerifier);
if (sslContext == null) {
throw new IllegalArgumentException(
"sslContext must not be null. Use SSLContext.getDefault() if you are unsure.");
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@
<jre.version>1.8</jre.version>
<httpcomponents.httpclient.version>4.5.13</httpcomponents.httpclient.version>
<httpcomponents.httpcore.version>4.4.16</httpcomponents.httpcore.version>
<httpcomponents.client5.version>5.5</httpcomponents.client5.version>
<httpcomponents.core5.version>5.3.4</httpcomponents.core5.version>
<httpcomponents.client5.version>5.6</httpcomponents.client5.version>
<httpcomponents.core5.version>5.4</httpcomponents.core5.version>
<!-- Reactive Streams version -->
<reactive-streams.version>1.0.4</reactive-streams.version>

Expand Down
Loading