[
https://issues.apache.org/jira/browse/CAMEL-7246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026260#comment-14026260
]
Aki Yoshida commented on CAMEL-7246:
------------------------------------
I am commenting on this behavior (the default behavior of passing those headers
as desired).
When you have a consumer endpoint, you want to pass those headers to the inside
component in the camel route so that they can be used in routing. When you have
a producer endpoint, you want to set some headers from the camel route to
control the behavior of the producer endpoint.
This leads to the conclusion that those headers must be transported through the
boundary between the endpoint and the route that is attached to. To prevent the
wrong or unintended headers from being passed to the endpoint or component down
the route, those headers should be removed after they are consumed in the route.
The workaround suggested by Sergey or its similar variant (e.g., removing all
content-* headers or removing all headers except some headers matching some
pattern, etc) is a required step that you need in your route to connect two
endpoints that share the same headers.
regards, aki
> [cxfrs] SimpleConsumer returns wrong Content-Type
> -------------------------------------------------
>
> Key: CAMEL-7246
> URL: https://issues.apache.org/jira/browse/CAMEL-7246
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.12.2
> Reporter: Alexey Markevich
> Attachments: camel-cxfrs-content-type.zip
>
>
> Looks like Content-Type is taken from request
--
This message was sent by Atlassian JIRA
(v6.2#6252)