Skip to content

Commit

Permalink
Fix all-trusting TrustManager init
Browse files Browse the repository at this point in the history
  • Loading branch information
di72nn committed May 22, 2016
1 parent f1e0b01 commit 7058155
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import okhttp3.Interceptor;
import okhttp3.JavaNetCookieJar;
import okhttp3.OkHttpClient;
import okhttp3.Protocol;
import okhttp3.Request;
import okhttp3.Response;

Expand All @@ -25,7 +24,6 @@
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
Expand Down Expand Up @@ -143,7 +141,7 @@ public void checkServerTrusted(java.security.cert.X509Certificate[] chain, Strin

@Override
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
return new java.security.cert.X509Certificate[0];
}
}
};
Expand Down

0 comments on commit 7058155

Please sign in to comment.