camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [4/6] git commit: CAMEL-7457 Does not override the "Content-Type" header of CXF response
Date Mon, 26 May 2014 07:54:28 GMT
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/ce3f8ee5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ce3f8ee5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ce3f8ee5

Branch: refs/heads/camel-2.12.x
Commit: ce3f8ee5b963c968e0e1b201c1a1cd896313b4d4
Parents: 72108c4
Author: Seiji Sogabe <sogabe@buildria.com>
Authored: Sun May 25 21:44:14 2014 +0900
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Mon May 26 15:38:38 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/ce3f8ee5/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)*");
 
     }
 


Mime
View raw message