camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7465) DefaultHeaderFIlterStrategy should be case insensitive.
Date Sun, 08 Jun 2014 13:01:06 GMT

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

ASF GitHub Bot commented on CAMEL-7465:
---------------------------------------

Github user jfarrell closed the pull request at:

    https://github.com/apache/camel/pull/162


> DefaultHeaderFIlterStrategy should be case insensitive.
> -------------------------------------------------------
>
>                 Key: CAMEL-7465
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7465
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Seiji Sogabe
>            Assignee: Willem Jiang
>             Fix For: 2.14.0
>
>
> I created my headerFilterStrategy to filter HTTP header "Content-Type" as follows.
> {code}
> public class MyCxfRsHeaderFilterStrategy extends DefaultHeaderFilterStrategy {
>     public CxfRsHeaderFilterStrategy() {
>         initialize();  
>     }
>     protected void initialize() {
>         :
>        (snip)
>         :
>         getOutFilter().add("Content-Type");
>         // filter headers begin with "Camel" or "org.apache.camel"
>         setOutFilterPattern("(Camel|org\\.apache\\.camel)[\\.|a-z|A-z|0-9]*");
>     }
> }
> {code}
> But I can not filter header if header name is "content-type".(all character is lower
case).
> HTTP header name is case insensitive. so It will be useful if DefaultFilter can filter
case insensitive.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message