Skip to content

Conversation

@garyrussell
Copy link
Contributor

Resolves #2528

When adding headers in a DLPR headers function, header values accumulate because Kafka headers support multiple values.

Provide a mechanism to allow adding a header to replace any existing header with that name.

cherry-pick to 2.9.x

Resolves spring-projects#2528

When adding headers in a DLPR headers function, header values accumulate
because Kafka headers support multiple values.

Provide a mechanism to allow adding a header to replace any existing header
with that name.

**cherry-pick to 2.9.x**
@artembilan artembilan merged commit 425f837 into spring-projects:main Jan 3, 2023
artembilan pushed a commit that referenced this pull request Jan 3, 2023
Resolves #2528

When adding headers in a DLPR headers function, header values accumulate
because Kafka headers support multiple values.

Provide a mechanism to allow adding a header to replace any existing header
with that name.

**cherry-pick to 2.9.x**

* Fix javadoc.
@artembilan
Copy link
Member

... and cherry-picked to 2.9.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add possibility to remove custom headers in method: addHeadersFunction(...) from DeadLetterPublishingRecoverer

2 participants