Skip to content

Commit d1f7b4c

Browse files
committed
fix(proxy): only add http or https proxy by ssl switch
1 parent f220e09 commit d1f7b4c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

volcengine-java-sdk-core/src/main/java/com/volcengine/ApiClient.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,11 @@ public List<Proxy> select(URI uri) {
699699
return proxies;
700700
}
701701

702-
addProxy(proxies, httpProxy, "HTTP_PROXY");
703-
addProxy(proxies, httpsProxy, "HTTPS_PROXY");
702+
if (disableSSL) {
703+
addProxy(proxies, httpProxy, "HTTP_PROXY");
704+
} else {
705+
addProxy(proxies, httpsProxy, "HTTPS_PROXY");
706+
}
704707

705708
return proxies;
706709
}

0 commit comments

Comments
 (0)