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

Commit

Permalink
Fixed reversed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dr4ke616 committed Jul 19, 2016
1 parent 9022518 commit 37a5383
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 37a5383

Please sign in to comment.