forked from Archives/Athou_commafeed
allow proxy configuration out of the box (fix #196)
This commit is contained in:
@@ -33,6 +33,7 @@ import org.apache.http.conn.ssl.X509HostnameVerifier;
|
|||||||
import org.apache.http.impl.client.DecompressingHttpClient;
|
import org.apache.http.impl.client.DecompressingHttpClient;
|
||||||
import org.apache.http.impl.client.DefaultHttpClient;
|
import org.apache.http.impl.client.DefaultHttpClient;
|
||||||
import org.apache.http.impl.client.DefaultHttpRequestRetryHandler;
|
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.HttpConnectionParams;
|
||||||
import org.apache.http.params.HttpParams;
|
import org.apache.http.params.HttpParams;
|
||||||
import org.apache.http.params.HttpProtocolParams;
|
import org.apache.http.params.HttpProtocolParams;
|
||||||
@@ -182,7 +183,7 @@ public class HttpGetter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static HttpClient newClient() {
|
public static HttpClient newClient() {
|
||||||
DefaultHttpClient client = new DefaultHttpClient();
|
DefaultHttpClient client = new SystemDefaultHttpClient();
|
||||||
|
|
||||||
SSLSocketFactory ssf = new SSLSocketFactory(SSL_CONTEXT, VERIFIER);
|
SSLSocketFactory ssf = new SSLSocketFactory(SSL_CONTEXT, VERIFIER);
|
||||||
ClientConnectionManager ccm = client.getConnectionManager();
|
ClientConnectionManager ccm = client.getConnectionManager();
|
||||||
|
|||||||
Reference in New Issue
Block a user