Skip to content

GH-1219: Fix header mapping for replies (@SendTo) #1221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

garyrussell
Copy link
Contributor

Resolves #1219

The headers were mapped after message conversion.
This prevented using a ContentTypeDelegatingMessageConverter because
the content type was not set.

cherry-pick to 2.2.x, 2.1.x, 1.7.x

Resolves spring-projects#1219

The headers were mapped after message conversion.
This prevented using a `ContentTypeDelegatingMessageConverter` because
the content type was not set.

Add a header to control whether the user or converter gets to set the
content type property in the final message.

**cherry-pick to 2.2.x, 2.1.x, 1.7.x**
@artembilan artembilan merged commit cf221da into spring-projects:master Jul 7, 2020
@artembilan
Copy link
Member

... and cherry-picked to 2.2.x & 2.1.x.

Back-ported to 1.7.x as 16a87df after migrating a new test class back to JUnit 4.

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.

Cannot set contentType on @SendTo replies
2 participants