mirror of
https://github.com/etesync/android
synced 2025-01-11 00:01:12 +00:00
Re-register http factory, as it was removed by accident during refactoring.
This commit is contained in:
parent
84211564bc
commit
195eb19840
@ -15,6 +15,7 @@ import ch.boye.httpclientandroidlib.client.config.RequestConfig;
|
|||||||
import ch.boye.httpclientandroidlib.config.Registry;
|
import ch.boye.httpclientandroidlib.config.Registry;
|
||||||
import ch.boye.httpclientandroidlib.config.RegistryBuilder;
|
import ch.boye.httpclientandroidlib.config.RegistryBuilder;
|
||||||
import ch.boye.httpclientandroidlib.conn.socket.ConnectionSocketFactory;
|
import ch.boye.httpclientandroidlib.conn.socket.ConnectionSocketFactory;
|
||||||
|
import ch.boye.httpclientandroidlib.conn.socket.PlainConnectionSocketFactory;
|
||||||
import ch.boye.httpclientandroidlib.impl.client.CloseableHttpClient;
|
import ch.boye.httpclientandroidlib.impl.client.CloseableHttpClient;
|
||||||
import ch.boye.httpclientandroidlib.impl.client.HttpClients;
|
import ch.boye.httpclientandroidlib.impl.client.HttpClients;
|
||||||
import ch.boye.httpclientandroidlib.impl.conn.ManagedHttpClientConnectionFactory;
|
import ch.boye.httpclientandroidlib.impl.conn.ManagedHttpClientConnectionFactory;
|
||||||
@ -28,6 +29,7 @@ public class DavHttpClient {
|
|||||||
static {
|
static {
|
||||||
socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory> create()
|
socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory> create()
|
||||||
.register("https", TlsSniSocketFactory.INSTANCE)
|
.register("https", TlsSniSocketFactory.INSTANCE)
|
||||||
|
.register("http", PlainConnectionSocketFactory.getSocketFactory())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// use request defaults from AndroidHttpClient
|
// use request defaults from AndroidHttpClient
|
||||||
|
Loading…
Reference in New Issue
Block a user