From 37a53838f6902c4676e47020fa4dcf47fe502e2b Mon Sep 17 00:00:00 2001 From: Adam Drakeford Date: Tue, 19 Jul 2016 12:39:29 +0100 Subject: [PATCH] Fixed reversed logic --- .../react/nakadi/client/providers/HttpClientProvider.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala b/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala index cf2fae2..0226c8c 100644 --- a/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala +++ b/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala @@ -34,7 +34,7 @@ class HttpClientProvider(actorContext: ActorContext, isConnectionSSL match { case true => - val sslContext = if (acceptAnyCertificate) SSLContext.getDefault else { + val sslContext = if (!acceptAnyCertificate) SSLContext.getDefault else { val permissiveTrustManager: TrustManager = new X509TrustManager() { override def checkClientTrusted(chain: Array[X509Certificate], authType: String): Unit = {}