Skip to content

Commit dae8ceb

Browse files
committed
In case of duplicate headers, headers from kafka-message should be retained
Signed-off-by: Md Soharab Ansari <[email protected]>
1 parent b4b8853 commit dae8ceb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: kafka-http-connector/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (conn *kafkaConnector) ConsumeClaim(session sarama.ConsumerGroupSession, cl
220220
// Set the headers came from Kafka record
221221
for _, h := range message.Headers {
222222
if utf8.ValidString(string(h.Value)) {
223-
headers.Add(string(h.Key), string(h.Value))
223+
headers.Set(string(h.Key), string(h.Value))
224224
}
225225
}
226226

Diff for: kafka-http-connector/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.17
1+
v0.18

0 commit comments

Comments
 (0)