Use desktop User-Agent for Facebook to workaround bug
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user