You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Seiji Sogabe (JIRA)" <ji...@apache.org> on 2014/05/26 03:50:01 UTC
[jira] [Commented] (CAMEL-7465) DefaultHeaderFIlterStrategy should
be case insensitive.
[ https://issues.apache.org/jira/browse/CAMEL-7465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008516#comment-14008516 ]
Seiji Sogabe commented on CAMEL-7465:
-------------------------------------
I created a pull reqest. See 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: Bug
> Components: camel-core
> Reporter: Seiji Sogabe
>
> 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)