Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from zalando/inverted-logic-fix
Browse files Browse the repository at this point in the history
Fixed reversed logic
  • Loading branch information
meln1k committed Jul 19, 2016
2 parents 9022518 + 37a5383 commit 926cf1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 926cf1e

Please sign in to comment.