mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +08:00
修正me.chanjar.weixin.common.util.http.DefaultApacheHttpClientBuilder#prepare调用问题,try to fix#52
This commit is contained in:
parent
815ea188e7
commit
25064c5ff8
@ -58,9 +58,8 @@ public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
|
||||
|
||||
private HttpClientBuilder httpClientBuilder;
|
||||
|
||||
private boolean prepared = false;
|
||||
|
||||
private DefaultApacheHttpClientBuilder() {
|
||||
prepare();
|
||||
}
|
||||
|
||||
public static DefaultApacheHttpClientBuilder get() {
|
||||
@ -153,11 +152,6 @@ public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
|
||||
|
||||
@Override
|
||||
public CloseableHttpClient build() {
|
||||
if (!this.prepared) {
|
||||
prepare();
|
||||
this.prepared = true;
|
||||
}
|
||||
|
||||
return this.httpClientBuilder.build();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user