Repository: camel Updated Branches: refs/heads/master efcff6eae -> 3451fb641
CAMEL-7457 Does not override the "Content-Type" header of CXF response Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3451fb64 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3451fb64 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3451fb64 Branch: refs/heads/master Commit: 3451fb64181f3bb2c0fab84e268149a067819c3d Parents: d8df3b7 Author: Seiji Sogabe <sog...@buildria.com> Authored: Sun May 25 21:44:14 2014 +0900 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Mon May 26 11:55:47 2014 +0800 ---------------------------------------------------------------------- .../camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/3451fb64/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategy.java ---------------------------------------------------------------------- diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategy.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategy.java index 50a31e0..fc69c60 100644 --- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategy.java +++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategy.java @@ -40,7 +40,7 @@ public class CxfRsHeaderFilterStrategy extends DefaultHeaderFilterStrategy { getOutFilter().add(Exchange.HTTP_PATH); getOutFilter().add(Exchange.DESTINATION_OVERRIDE_URL); // filter headers begin with "Camel" or "org.apache.camel" - setOutFilterPattern("(Camel|org\\.apache\\.camel)[\\.|a-z|A-z|0-9]*"); + setOutFilterPattern("((Camel|org\\.apache\\.camel)[\\.|a-z|A-z|0-9]|(?i)Content-Type)*"); }