mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-05 21:27:47 +08:00
commit
510cad2e77
@ -60,9 +60,8 @@ public class DefaultApacheHttpClientBuilder implements ApacheHttpClientBuilder {
|
||||
|
||||
private HttpClientBuilder httpClientBuilder;
|
||||
|
||||
private boolean prepared = false;
|
||||
|
||||
private DefaultApacheHttpClientBuilder() {
|
||||
prepare();
|
||||
}
|
||||
|
||||
public static DefaultApacheHttpClientBuilder get() {
|
||||
@ -155,11 +154,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