You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/03/19 04:55:15 UTC

[jira] [Commented] (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=13606022#comment-13606022 ] 

Willem Jiang commented on CAMEL-6171:
-------------------------------------

That is caused by the CXF is using this hard code to check the User-Agent
{code}
        if (!connection.getRequestProperties().containsKey("User-Agent")) {
            connection.addRequestProperty("User-Agent", Version.getCompleteVersionString());
        }
{code}

I will update the camel-cxf code for it.

                
> 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