Skip to content

Commit

Permalink
In case of duplicate headers, headers from kafka-message should be re…
Browse files Browse the repository at this point in the history
…tained (#170)
  • Loading branch information
soharab-ic authored Oct 23, 2024
1 parent b4b8853 commit 0cff762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kafka-http-connector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (conn *kafkaConnector) ConsumeClaim(session sarama.ConsumerGroupSession, cl
// Set the headers came from Kafka record
for _, h := range message.Headers {
if utf8.ValidString(string(h.Value)) {
headers.Add(string(h.Key), string(h.Value))
headers.Set(string(h.Key), string(h.Value))
}
}

Expand Down
2 changes: 1 addition & 1 deletion kafka-http-connector/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.17
v0.18

0 comments on commit 0cff762

Please sign in to comment.