Skip to content

Commit

Permalink
Merge pull request #16 from Enrico204/master
Browse files Browse the repository at this point in the history
Using right TLS/SSL class on HTTPS connections
  • Loading branch information
ennswi committed Jun 8, 2015
2 parents 7df061b + e4febb4 commit 7904cd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ protected HttpClient getHttpClient() {
SchemeRegistry registry = new SchemeRegistry();
registry.register(new Scheme("http", new PlainSocketFactory(), 80));
registry.register(new Scheme("https",
(mTrustAll ? EasySSLSocketFactory.getSocketFactory() : new PlainSocketFactory()), 443
(mTrustAll ? EasySSLSocketFactory.getSocketFactory() : new TlsSniSocketFactory()), 443
));
return new DefaultHttpClient(
new ThreadSafeClientConnManager(params, registry), params);
Expand Down

0 comments on commit 7904cd7

Please sign in to comment.