Skip to content

Commit 6ef0501

Browse files
committed
🐛 修复else 丢失的逻辑 BUG
1 parent e0f2206 commit 6ef0501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/xkcoding/http/HttpUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class HttpUtil {
4646
defaultProxy = new com.xkcoding.http.support.java11.HttpClientImpl();
4747
}
4848
// 基于 okhttp3
49-
if (ClassUtil.isPresent("okhttp3.OkHttpClient", classLoader)) {
49+
else if (ClassUtil.isPresent("okhttp3.OkHttpClient", classLoader)) {
5050
defaultProxy = new OkHttp3Impl();
5151
}
5252
// 基于 httpclient

0 commit comments

Comments
 (0)