Updated Branches:
  refs/heads/camel-2.11.x 7919dd42f -> f9ae70bec

Clean up the code of XmlRpcProducer


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f9ae70be
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f9ae70be
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f9ae70be

Branch: refs/heads/camel-2.11.x
Commit: f9ae70bec00e4e3b85d65e9556aebd35470efaa4
Parents: 7919dd4
Author: Willem Jiang <[email protected]>
Authored: Thu Aug 22 14:10:54 2013 +0800
Committer: Willem Jiang <[email protected]>
Committed: Thu Aug 22 16:23:35 2013 +0800

----------------------------------------------------------------------
 .../java/org/apache/camel/component/xmlrpc/XmlRpcProducer.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f9ae70be/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcProducer.java
----------------------------------------------------------------------
diff --git 
a/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcProducer.java
 
b/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcProducer.java
index c4110ba..ef8efea 100644
--- 
a/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcProducer.java
+++ 
b/components/camel-xmlrpc/src/main/java/org/apache/camel/component/xmlrpc/XmlRpcProducer.java
@@ -48,7 +48,7 @@ public class XmlRpcProducer extends DefaultProducer 
implements AsyncProcessor {
         Object result = client.execute(operationName, in.getBody(List.class));
         //TODO what if the request is one way operation
         // copy the in message header to the out message
-        exchange.getOut().setHeaders(exchange.getIn().getHeaders());
+        exchange.getOut().getHeaders().putAll(exchange.getIn().getHeaders());
         exchange.getOut().setBody(result);
     }
     

Reply via email to