camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1404510 - /camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/DefaultAhcBinding.java
Date Thu, 01 Nov 2012 09:05:27 GMT
Author: ningjiang
Date: Thu Nov  1 09:05:26 2012
New Revision: 1404510

URL: http://svn.apache.org/viewvc?rev=1404510&view=rev
Log:
CAMEL-5757 updated the code of camel-ahc

Modified:
    camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/DefaultAhcBinding.java

Modified: camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/DefaultAhcBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/DefaultAhcBinding.java?rev=1404510&r1=1404509&r2=1404510&view=diff
==============================================================================
--- camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/DefaultAhcBinding.java
(original)
+++ camel/trunk/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/DefaultAhcBinding.java
Thu Nov  1 09:05:26 2012
@@ -55,6 +55,8 @@ public class DefaultAhcBinding implement
     public Request prepareRequest(AhcEndpoint endpoint, Exchange exchange) throws CamelExchangeException
{
         if (endpoint.isBridgeEndpoint()) {
             exchange.setProperty(Exchange.SKIP_GZIP_ENCODING, Boolean.TRUE);
+            // Need to remove the Host key as it should be not used 
+            exchange.getIn().getHeaders().remove("host");
         }
 
         RequestBuilder builder = new RequestBuilder();



Mime
View raw message