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

Claus Ibsen commented on CAMEL-1886:
------------------------------------

@Hadrian

I tried that as well. Its in the first patch but it messes up how scripting 
engines and other frameworks accesses the Map. To fix this we need yo copy the 
map to a regular Map instance for them to work with. And then we need to merge 
back any changes.

That is doable but the latest patch is just a single class that works in all 
situations - and something I wanted to try out afterwards to see if that was 
possible.

> Lookup headers from a Camel Message should be case agnostic
> -----------------------------------------------------------
>
>                 Key: CAMEL-1886
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1886
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: CAMEL_1886.patch, CaseInsensitiveMap.java
>
>
> Today the case matter so: getHeader("Foo") and getHeader("foo") is not the 
> same.
> And for some protocols the header case do not matter such as
> - http
> - mail
> etc.
> And who would in real life want to send 2 headers that are different only 
> depending on the case
> - Foo=me
> - foo=you

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to