From 195eb198405a8103706bea44c988c134f58ca225 Mon Sep 17 00:00:00 2001 From: bubak4 Date: Tue, 25 Mar 2014 11:52:23 +0100 Subject: [PATCH] Fix #207 (http not supported #207) Re-register http factory, as it was removed by accident during refactoring. --- src/at/bitfire/davdroid/webdav/DavHttpClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/at/bitfire/davdroid/webdav/DavHttpClient.java b/src/at/bitfire/davdroid/webdav/DavHttpClient.java index 979d19fe..1bd596c8 100644 --- a/src/at/bitfire/davdroid/webdav/DavHttpClient.java +++ b/src/at/bitfire/davdroid/webdav/DavHttpClient.java @@ -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. create() .register("https", TlsSniSocketFactory.INSTANCE) + .register("http", PlainConnectionSocketFactory.getSocketFactory()) .build(); // use request defaults from AndroidHttpClient