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 10:17:53 UTC

(camel) branch CAMEL-21880-4.10.x created (now 4affd991be6)

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

acosentino pushed a change to branch CAMEL-21880-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 4affd991be6 CAMEL-21880 - camel-kafka - add lowerCase to header filter strategy

This branch includes the following new commits:

     new 4affd991be6 CAMEL-21880 - camel-kafka - add lowerCase to header filter strategy

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: CAMEL-21880 - camel-kafka - add lowerCase to header filter strategy

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 4affd991be65359e2d9680d6812f2a9568a0ab97
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.");