Okhttp3 cleanups, docs, and fix timeouts for default client

This commit is contained in:
Dominik Schürmann committed 2016-04-09 11:53:37 +02:00
1 parent 4edb805ba1
commit 2d762e55da
5 files changed
+41 -29

No files matched your search

@@ -356,7 +356,7 @@ public class AddEditKeyserverDialogFragment extends DialogFragment implements On
OkHttpClient client = OkHttpClientFactory.getPinnedClient(newKeyserver.toURL(), proxy);
if (onlyTrustedKeyserver
&& TlsHelper.getPinnedSslSocketFactory(newKeyserver.toURL())==null) {
&& TlsHelper.getPinnedSslSocketFactory(newKeyserver.toURL()) == null) {
Log.w(Constants.TAG, "No pinned certificate for this host in OpenKeychain's assets.");
reason = FailureReason.NO_PINNED_CERTIFICATE;
return reason;