camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [12/20] camel git commit: CAMEL-9454: camel-gora - Should preserve headers
Date Sun, 27 Dec 2015 17:28:42 GMT
CAMEL-9454: camel-gora - Should preserve headers


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

Branch: refs/heads/master
Commit: 62a7aad6eb30a10b132e5de5f1d794e90a8be8d7
Parents: ddbc7b4
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Dec 27 14:52:37 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Dec 27 18:25:27 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/gora/GoraProducer.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/62a7aad6/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
index 8ed67fd..f68daad 100644
--- a/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
+++ b/components/camel-gora/src/main/java/org/apache/camel/component/gora/GoraProducer.java
@@ -114,8 +114,9 @@ public class GoraProducer extends DefaultProducer implements ServicePoolAware
{
         }
 
         exchange.getOut().setBody(result);
-        // preserve headers
+        // preserve headers and attachments
         exchange.getOut().setHeaders(exchange.getIn().getHeaders());
+        exchange.getOut().setAttachments(exchange.getIn().getAttachments());
     }
 
 }


Mime
View raw message