[ 
https://issues.apache.org/jira/browse/CAMEL-7246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030595#comment-14030595
 ] 

Sergey Beryozkin commented on CAMEL-7246:
-----------------------------------------

Hi Aki

Re your question 3, I doubt we can prevent users setting the wrong 
Content-Length, it can become quite hairy :-), we might be able to prevent the 
inconsistency for only limited set of entity types like byte[] or String...It 
is not recommended, explicitly setting Content-Length.

I guess we have plenty of options at Camel level to control it.
At the end of the day it is not a big issue.

I'd go for preventing copying an in Content-Length from Camel to out CXF 
headers, it is probably safe enough.
Re Content-Type: probably safe blocking copying it it the out CXF chain too, 
but I won't insist,

Cheers, Sergey



> [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)

Reply via email to