This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-4.10.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.10.x by this push: new ac2a21095f9 CAMEL-21880 - camel-kafka - add lowerCase to header filter strategy (#17506) ac2a21095f9 is described below commit ac2a21095f9b3ffc4c42e194514773ca2f05237c Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Mar 19 11:28:46 2025 +0100 CAMEL-21880 - camel-kafka - add lowerCase to header filter strategy (#17506) Signed-off-by: Andrea Cosentino <anco...@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.");