[
https://issues.apache.org/jira/browse/CAMEL-7465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008545#comment-14008545
]
Willem Jiang commented on CAMEL-7465:
-------------------------------------
Current DefaultHeaderFilterStrategy supports the case insensitive by setting
the content-type to lowercase and enable the setting of setLowercase(true) just
like this
{code}
getOutFilter().add("Content-Length".toLowerCase());
setLowerCase(true);
{code}
It makes sense that we can support the case insensitive , it could save the
user some configuration time.
> 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
>
> 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)