You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2025/03/19 09:58:43 UTC
(camel) 01/01: CAMEL-21880 - camel-kafka - add lowerCase to header filter strategy
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch CAMEL-21880
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 77d2bff9581813528ee07a0f163a444ba81093b4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 19 10:38:47 2025 +0100
CAMEL-21880 - camel-kafka - add lowerCase to header filter strategy
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../org/apache/camel/component/kafka/KafkaHeaderFilterStrategy.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaHeaderFilterStrategy.java b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaHeaderFilterStrategy.java
index e3516b40747..d2b1fb49a8f 100644
--- a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaHeaderFilterStrategy.java
+++ b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaHeaderFilterStrategy.java
@@ -28,6 +28,8 @@ public class KafkaHeaderFilterStrategy extends DefaultHeaderFilterStrategy {
// filter out kafka record metadata
getInFilter().add("org.apache.kafka.clients.producer.RecordMetadata");
+ setLowerCase(true);
+
// filter headers beginning with "Camel" or "org.apache.camel" or "kafka."
setOutFilterStartsWith("Camel", "camel", "org.apache.camel.", "kafka.");
setInFilterStartsWith("Camel", "camel", "org.apache.camel.", "kafka.");