allow proxy configuration out of the box (fix #196)

This commit is contained in:
Athou
2013-05-27 11:35:34 +02:00
parent 1ce2d854cb
commit ab88a2f892

View File

@@ -33,6 +33,7 @@ import org.apache.http.conn.ssl.X509HostnameVerifier;
import org.apache.http.impl.client.DecompressingHttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.client.DefaultHttpRequestRetryHandler;
import org.apache.http.impl.client.SystemDefaultHttpClient;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.apache.http.params.HttpProtocolParams;
@@ -182,7 +183,7 @@ public class HttpGetter {
}
public static HttpClient newClient() {
DefaultHttpClient client = new DefaultHttpClient();
DefaultHttpClient client = new SystemDefaultHttpClient();
SSLSocketFactory ssf = new SSLSocketFactory(SSL_CONTEXT, VERIFIER);
ClientConnectionManager ccm = client.getConnectionManager();