camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject git commit: Default CXFRS Binding: Fix a wrong usage of HeaderFilterStrategy#applyFilterTo...
Date Tue, 09 Sep 2014 16:50:25 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.12.x e6768fcd4 -> bef79b5a5


Default CXFRS Binding: Fix a wrong usage of HeaderFilterStrategy#applyFilterTo...


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bef79b5a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bef79b5a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bef79b5a

Branch: refs/heads/camel-2.12.x
Commit: bef79b5a5ba9d10374c77ba45525e81c5eee9d8e
Parents: e6768fc
Author: Raul Kripalani <raulk@apache.org>
Authored: Tue Sep 9 17:49:28 2014 +0100
Committer: Raul Kripalani <raulk@apache.org>
Committed: Tue Sep 9 17:50:18 2014 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/cxf/jaxrs/DefaultCxfRsBinding.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/bef79b5a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/DefaultCxfRsBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/DefaultCxfRsBinding.java
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/DefaultCxfRsBinding.java
index d72ceab..4d0464a 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/DefaultCxfRsBinding.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/DefaultCxfRsBinding.java
@@ -283,7 +283,7 @@ public class DefaultCxfRsBinding implements CxfRsBinding, HeaderFilterStrategyAw
         Map<String, List<String>> headers = (Map<String, List<String>>)cxfMessage.get(org.apache.cxf.message.Message.PROTOCOL_HEADERS);
         for (Map.Entry<String, List<String>>entry : headers.entrySet()) {
             // just make sure the first String element is not null
-            if (headerFilterStrategy.applyFilterToCamelHeaders(entry.getKey(), entry.getValue(),
camelExchange) 
+            if (headerFilterStrategy.applyFilterToExternalHeaders(entry.getKey(), entry.getValue(),
camelExchange) 
                 || entry.getValue().get(0) == null) {
                 LOG.trace("Drop CXF message protocol header: {}={}", entry.getKey(), entry.getValue());
             } else {


Mime
View raw message