Seiji Sogabe created CAMEL-7465:
-----------------------------------

             Summary: 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)

Reply via email to