1
0
mirror of https://github.com/etesync/android synced 2024-11-15 12:28:57 +00:00

Fix #207 (http not supported #207)

Re-register http factory, as it was removed by accident during refactoring.
This commit is contained in:
bubak4 2014-03-25 11:52:23 +01:00
parent 84211564bc
commit 195eb19840

View File

@ -15,6 +15,7 @@ import ch.boye.httpclientandroidlib.client.config.RequestConfig;
import ch.boye.httpclientandroidlib.config.Registry;
import ch.boye.httpclientandroidlib.config.RegistryBuilder;
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.HttpClients;
import ch.boye.httpclientandroidlib.impl.conn.ManagedHttpClientConnectionFactory;
@ -28,6 +29,7 @@ public class DavHttpClient {
static {
socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory> create()
.register("https", TlsSniSocketFactory.INSTANCE)
.register("http", PlainConnectionSocketFactory.getSocketFactory())
.build();
// use request defaults from AndroidHttpClient