diff options
Diffstat (limited to 'vespa-http-client/src')
-rw-r--r-- | vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java | 4 |
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 ac6a1d7cd22..0e7488c8927 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()); |