This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.21.x by this push:
     new be5fe50  CAMEL-12384 - camel-influxdb Query, fixed the copy of headers 
from in to out
be5fe50 is described below

commit be5fe50ca092003a76ee93590954c00e312e96f4
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Mar 20 15:40:04 2018 +0100

    CAMEL-12384 - camel-influxdb Query, fixed the copy of headers from in to out
---
 .../main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java
 
b/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java
index 625a1cb..95c6623 100644
--- 
a/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java
+++ 
b/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java
@@ -19,6 +19,7 @@ package org.apache.camel.component.influxdb;
 import org.apache.camel.Exchange;
 import org.apache.camel.InvalidPayloadException;
 import org.apache.camel.impl.DefaultProducer;
+import org.apache.camel.util.MessageHelper;
 import org.apache.camel.util.ObjectHelper;
 import org.influxdb.InfluxDB;
 import org.influxdb.dto.BatchPoints;
@@ -105,6 +106,7 @@ public class InfluxDbProducer extends DefaultProducer {
         String query = calculateQuery(exchange);
         Query influxdbQuery = new Query(query, dataBaseName);
         QueryResult resultSet = connection.query(influxdbQuery);
+        MessageHelper.copyHeaders(exchange.getIn(), exchange.getOut(), true);
         exchange.getOut().setBody(resultSet);
     }
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to