camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/4] git commit: Clean up the code of XmlRpcProducer
Date Thu, 22 Aug 2013 06:38:48 GMT
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/22c5f01a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/22c5f01a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/22c5f01a

Branch: refs/heads/master
Commit: 22c5f01a6929f70e0629d598ef8ac1966b660936
Parents: b090b18
Author: Willem Jiang <ningjiang@apache.org>
Authored: Thu Aug 22 14:10:54 2013 +0800
Committer: Willem Jiang <ningjiang@apache.org>
Committed: Thu Aug 22 14:10:54 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/22c5f01a/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 a66d2a2..04be300 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);
     }
     


Mime
View raw message