camel-commits mailing list archives

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

Branch: refs/heads/camel-2.13.x
Commit: 194f1931818fa9f2639778ba0a8354b2b311f144
Parents: b520a44
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:24:17 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/194f1931/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