This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f6af39  CAMEL-14460: camel-core - Optimize and allow to turn off case 
insensitive headers
9f6af39 is described below

commit 9f6af39e181173b257265e7303beefd0e885a89e
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jan 31 07:20:37 2020 +0100

    CAMEL-14460: camel-core - Optimize and allow to turn off case insensitive 
headers
---
 .../main/java/org/apache/camel/impl/engine/AbstractCamelContext.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
 
b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index 31b7768..ec2b047 100644
--- 
a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++ 
b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -2605,9 +2605,12 @@ public abstract class AbstractCamelContext extends 
ServiceSupport implements Ext
         }
 
         LOG.debug("Using HeadersMapFactory: {}", getHeadersMapFactory());
-        if (!getHeadersMapFactory().isCaseInsensitive()) {
+        if (isCaseInsensitiveHeaders() && 
!getHeadersMapFactory().isCaseInsensitive()) {
             LOG.info("HeadersMapFactory: {} is case-sensitive which can cause 
problems for protocols such as HTTP based, which rely on case-insensitive 
headers.",
                      getHeadersMapFactory());
+        } else if (!isCaseInsensitiveHeaders()) {
+            // notify user that the headers are sensitive which can be a 
problem
+            LOG.info("Case-insensitive headers is not in use. This can cause 
problems for protocols such as HTTP based, which rely on case-insensitive 
headers.");
         }
 
         // lets log at INFO level if we are not using the default reactive 
executor

Reply via email to