修正site.setHttpProxy()不起作用的bug
parent
05a1f39569
commit
590561a6e4
|
@ -145,6 +145,10 @@ public class HttpClientDownloader extends AbstractDownloader {
|
|||
HttpHost host = site.getHttpProxyFromPool();
|
||||
requestConfigBuilder.setProxy(host);
|
||||
request.putExtra(Request.PROXY, host);
|
||||
}else if(site.getHttpProxy()!= null){
|
||||
HttpHost host = site.getHttpProxy();
|
||||
requestConfigBuilder.setProxy(host);
|
||||
request.putExtra(Request.PROXY, host);
|
||||
}
|
||||
requestBuilder.setConfig(requestConfigBuilder.build());
|
||||
return requestBuilder.build();
|
||||
|
|
Loading…
Reference in New Issue