You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurélien Pupier (Jira)" <ji...@apache.org> on 2022/02/15 10:06:00 UTC

[jira] [Created] (CAMEL-17649) Examples for setHeader in example are outdated: it contains name attribute instead of headerName

Aurélien Pupier created CAMEL-17649:
---------------------------------------

             Summary: Examples for setHeader in example are outdated: it contains name attribute instead of headerName
                 Key: CAMEL-17649
                 URL: https://issues.apache.org/jira/browse/CAMEL-17649
             Project: Camel
          Issue Type: Bug
          Components: documentation, eip
    Affects Versions: 3.15.0
            Reporter: Aurélien Pupier


see https://camel.apache.org/components/3.15.x/eips/setHeader-eip.html#_using_set_header

{noformat}
<route>
    <from uri="direct:a"/>
    <setHeader name="myHeader">
        <constant>test</constant>
    </setHeader>
    <to uri="direct:b"/>
</route>
{noformat}

I think that it should be:

{noformat}
<route>
    <from uri="direct:a"/>
    <setHeader headerName="myHeader">
        <constant>test</constant>
    </setHeader>
    <to uri="direct:b"/>
</route>
{noformat}






--
This message was sent by Atlassian Jira
(v8.20.1#820001)