Okhttp3 cleanups, docs, and fix timeouts for default client

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

View File

@@ -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;