You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/05/17 15:15:16 UTC

[jira] [Resolved] (CAMEL-6375) Headers are not set correctly in some situation

     [ https://issues.apache.org/jira/browse/CAMEL-6375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-6375.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.12.0
                   2.11.1

Fixed the DSL with the setHeader / removeHeaders EIPs to work correctly on OUT or IN
                
> Headers are not set correctly in some situation
> -----------------------------------------------
>
>                 Key: CAMEL-6375
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6375
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.10.4
>            Reporter: clement tamisier
>            Assignee: Willem Jiang
>             Fix For: 2.11.1, 2.12.0
>
>
> If I define a route like this: 
> from("<MyUrl>/test") 
> .setHeader(Exchange.HTTP_RESPONSE_CODE, simple("400")); 
> my http client get a 200 response code. 
> If a add something else on the route like: 
> from("<MyUrl>/test") 
> .setHeader(Exchange.HTTP_RESPONSE_CODE, simple("400")) 
> .log("400").
> my http client get a 400 response code as expected. 
> forum :
> http://camel.465427.n5.nabble.com/route-http-code-td5732728.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