Skip to content

Commit

Permalink
AXIS2-5948 Add org.apache.axis2.transport.http.HTTPProxyConfiguratorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlazarski committed Feb 14, 2025
1 parent e33ddfd commit 2741a14
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ public static void configure(MessageContext messageContext, RequestConfig.Builde
clientContext.setCredentialsProvider(credsProvider);
credsProvider.setCredentials(new AuthScope(null, -1), proxyCredentials);
}
HttpHost proxy = new HttpHost(proxyHost, proxyPort);
requestConfig.setProxy(proxy);
if (proxyHost != null && proxyPort > 0) {
HttpHost proxy = new HttpHost(proxyHost, proxyPort);
requestConfig.setProxy(proxy);
}
}

private static OMElement getProxyConfigurationElement(Parameter proxySettingsFromAxisConfig)
Expand Down

0 comments on commit 2741a14

Please sign in to comment.