camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1147177 - /camel/trunk/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java
Date Fri, 15 Jul 2011 15:00:06 GMT
Author: davsclaus
Date: Fri Jul 15 15:00:05 2011
New Revision: 1147177

URL: http://svn.apache.org/viewvc?rev=1147177&view=rev
Log:
CAMEL-4176: Fixed registering proxy port is secure - not secure depending on proxyAuthScheme
option.

Modified:
    camel/trunk/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java

Modified: camel/trunk/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java?rev=1147177&r1=1147176&r2=1147177&view=diff
==============================================================================
--- camel/trunk/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java
(original)
+++ camel/trunk/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java
Fri Jul 15 15:00:05 2011
@@ -140,9 +140,10 @@ public class HttpComponent extends Heade
             String proxyAuthPassword = getAndRemoveParameter(parameters, "proxyAuthPassword",
String.class);
             String proxyAuthDomain = getAndRemoveParameter(parameters, "proxyAuthDomain",
String.class);
             String proxyAuthNtHost = getAndRemoveParameter(parameters, "proxyAuthNtHost",
String.class);
+            boolean secureProxy = HttpHelper.isSecureConnection(proxyAuthScheme);
 
             // register scheme for proxy
-            registerPort(secure, x509HostnameVerifier, proxyAuthPort, sslContextParameters);
+            registerPort(secureProxy, x509HostnameVerifier, proxyAuthPort, sslContextParameters);
 
             if (proxyAuthUsername != null && proxyAuthPassword != null) {
                 return CompositeHttpConfigurer.combineConfigurers(



Mime
View raw message