You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2013/03/19 20:37:16 UTC
[jira] [Comment Edited] (CAMEL-6171) camel-cxf - Should detect
existing User-Agent header to avoid adding duplicate
[ https://issues.apache.org/jira/browse/CAMEL-6171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13606698#comment-13606698 ]
Daniel Kulp edited comment on CAMEL-6171 at 3/19/13 7:35 PM:
-------------------------------------------------------------
Actually, I think Camel should NOT be copying the User-Agent header over unless it's in RAW/MESSAGE mode. The server may be using the User-Agent header to change how the response is sent or similar if it knows that a particular client type may have issues. Thus, if CXF is going to be processing the response (POJO, CXF_MESSAGE, PAYLOAD), then the User-Agent should be set to CXF. If in RAW/MESSAGE, then likely the original agent should be retained.
was (Author: dkulp):
Actually, I think Camel should NOT by copying the User-Agent header over unless it's in RAW/MESSAGE mode. The server may be using the User-Agent header to change how the response is sent or similar if it knows that a particular client type may have issues. Thus, if CXF is going to be processing the response (POJO, CXF_MESSAGE, PAYLOAD), then the User-Agent should be set to CXF. If in RAW/MESSAGE, then likely the original agent should be retained.
> camel-cxf - Should detect existing User-Agent header to avoid adding duplicate
> ------------------------------------------------------------------------------
>
> Key: CAMEL-6171
> URL: https://issues.apache.org/jira/browse/CAMEL-6171
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/CXF-proxy-route-creates-multiple-two-user-agent-HTTP-headers-tp5729137.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira