[
https://issues.apache.org/jira/browse/CAMEL-7465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang resolved CAMEL-7465.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.14.0
Applied the patch with thanks to Seiji to camel master branch.
> 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)