Skip to content

Commit

Permalink
Rework
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhangi-cs committed Jan 3, 2024
1 parent e3b865e commit c1714d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import io.cdap.cdap.api.retry.RetryableException;
import io.cdap.plugin.successfactors.common.exception.TransportException;
import io.cdap.plugin.successfactors.common.util.ResourceConstants;
import io.cdap.plugin.successfactors.common.util.SuccessFactorsUtil;
import io.cdap.plugin.successfactors.connector.SuccessFactorsConnectorConfig;
import okhttp3.Authenticator;
import okhttp3.Credentials;
Expand Down Expand Up @@ -213,7 +214,7 @@ private OkHttpClient buildConfiguredClient(String proxyUrl, String proxyUsername
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(url.getHost(), url.getPort()));
builder.proxy(proxy);

if (Strings.isNullOrEmpty(proxyUsername) && Strings.isNullOrEmpty(proxyPassword)) {
if (SuccessFactorsUtil.isNotNullOrEmpty(proxyUsername) && SuccessFactorsUtil.isNotNullOrEmpty(proxyPassword)) {
builder.proxyAuthenticator(new Authenticator() {
@Override
public Request authenticate(Route route, Response response) {
Expand Down

0 comments on commit c1714d9

Please sign in to comment.