Use desktop User-Agent for Facebook to workaround bug

This commit is contained in:
Dominik Schürmann
2016-11-22 00:15:12 +01:00
parent e267c3ca6c
commit d43d4967e2
3 changed files with 19 additions and 11 deletions

View File

@@ -46,8 +46,8 @@ public class OkHttpClientFactory {
.build();
}
public static OkHttpClient getClientPinnedIfAvailable(URL url, Proxy proxy) throws IOException,
TlsHelper.TlsHelperException {
public static OkHttpClient getClientPinnedIfAvailable(URL url, Proxy proxy)
throws IOException, TlsHelper.TlsHelperException {
OkHttpClient.Builder builder = new OkHttpClient.Builder();
// don't follow any redirects for keyservers, as discussed in the security audit

View File

@@ -36,7 +36,7 @@ public class OkHttpKeybaseClient implements KeybaseUrlConnectionClient {
@Override
public Response getUrlResponse(URL url, Proxy proxy, boolean isKeybase) throws IOException {
OkHttpClient client = null;
OkHttpClient client;
try {
if (proxy != null) {