summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2020-01-09 12:26:20 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2020-01-09 13:02:18 +0100
commit4c07cb7c5b877d98f2232b124215c10e0f2f0dce (patch)
treee0b28c2ce9a4445375da6f7555cfd07c18f471ae /vespa-http-client
parentc46674dca612d07c219a27aff167ad20a9b817d5 (diff)
Upgrade Apache httpclient and httpcore to newest version
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
index 0e7488c8927..ac6a1d7cd22 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
@@ -413,7 +413,7 @@ class ApacheGatewayConnection implements GatewayConnection {
} else {
clientBuilder = HttpClientBuilder.create();
if (connectionParams.getSslContext() != null) {
- clientBuilder.setSslcontext(connectionParams.getSslContext());
+ clientBuilder.setSSLContext(connectionParams.getSslContext());
} else {
SslContextBuilder builder = new SslContextBuilder();
if (connectionParams.getPrivateKey() != null && connectionParams.getCertificate() != null) {
@@ -422,7 +422,7 @@ class ApacheGatewayConnection implements GatewayConnection {
if (connectionParams.getCaCertificates() != null) {
builder.withTrustStore(connectionParams.getCaCertificates());
}
- clientBuilder.setSslcontext(builder.build());
+ clientBuilder.setSSLContext(builder.build());
}
if (connectionParams.getHostnameVerifier() != null) {
clientBuilder.setSSLHostnameVerifier(connectionParams.getHostnameVerifier());