You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ra...@apache.org on 2014/09/09 18:49:35 UTC
git commit: Default CXFRS Binding: Fix a wrong usage of
HeaderFilterStrategy#applyFilterTo...
Repository: camel
Updated Branches:
refs/heads/master a6e2fa562 -> c047e252c
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/c047e252
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c047e252
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c047e252
Branch: refs/heads/master
Commit: c047e252cc73596c519e538bd6de13c24350d09b
Parents: a6e2fa5
Author: Raul Kripalani <ra...@apache.org>
Authored: Tue Sep 9 17:49:28 2014 +0100
Committer: Raul Kripalani <ra...@apache.org>
Committed: Tue Sep 9 17:49:28 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/c047e252/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 e31cdac..867536f 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
@@ -263,7 +263,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 {