Skip to content

Commit aa76806

Browse files
committed
Cherry pick branch 'genexuslabs:HttpClientLocation' into beta
1 parent c1e669d commit aa76806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/main/java/com/genexus/internet/HttpClientJavaLib.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public void execute(String method, String url) {
268268
this.httpClientBuilder.setDefaultCookieStore(cookiesToSend); // Cookies Seteo CookieStore
269269
}
270270

271-
if (getProxyInfoChanged()) {
271+
if (getProxyInfoChanged() && !getProxyServerHost().isEmpty() && getProxyServerPort() != 0) {
272272
HttpHost proxy = new HttpHost(getProxyServerHost(), getProxyServerPort());
273273
this.httpClientBuilder.setRoutePlanner(new DefaultProxyRoutePlanner(proxy));
274274
this.reqConfig = RequestConfig.custom()

0 commit comments

Comments
 (0)