fixed #132
This commit is contained in:
parent
774eb85b75
commit
f248e50a37
@ -4,6 +4,7 @@ import java.net.InetSocketAddress;
|
|||||||
|
|
||||||
import org.apache.commons.httpclient.HttpClient;
|
import org.apache.commons.httpclient.HttpClient;
|
||||||
import org.apache.commons.httpclient.HttpConnectionManager;
|
import org.apache.commons.httpclient.HttpConnectionManager;
|
||||||
|
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
|
||||||
import org.apache.commons.httpclient.protocol.Protocol;
|
import org.apache.commons.httpclient.protocol.Protocol;
|
||||||
|
|
||||||
import com.foxinmy.weixin4j.http.HttpParams;
|
import com.foxinmy.weixin4j.http.HttpParams;
|
||||||
@ -24,7 +25,7 @@ public class HttpComponent3Factory extends HttpClientFactory {
|
|||||||
private final HttpClient httpClient;
|
private final HttpClient httpClient;
|
||||||
|
|
||||||
public HttpComponent3Factory() {
|
public HttpComponent3Factory() {
|
||||||
httpClient = new HttpClient();
|
httpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
|
||||||
httpClient.getParams().setHttpElementCharset(Consts.UTF_8.name());
|
httpClient.getParams().setHttpElementCharset(Consts.UTF_8.name());
|
||||||
httpClient.getParams().setParameter("http.protocol.uri-charset",
|
httpClient.getParams().setParameter("http.protocol.uri-charset",
|
||||||
Consts.UTF_8.name());
|
Consts.UTF_8.name());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user