This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 4a019ec CAMEL-12384 - camel-influxdb Query, fixed the copy of headers
from in to out
4a019ec is described below
commit 4a019ecdbee72613c99c352858aa30e4b1bb023c
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].