camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] branch camel-2.21.x updated: CAMEL-12785: ServletComponent ignores HttpBinding
Date Wed, 12 Sep 2018 06:19:58 GMT
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.21.x by this push:
     new a2c6845  CAMEL-12785: ServletComponent ignores HttpBinding
a2c6845 is described below

commit a2c6845081d55c9624c6363172f65a8390267fa4
Author: Viral Gohel <vrlgohel87@gmail.com>
AuthorDate: Tue Sep 11 23:25:10 2018 +0530

    CAMEL-12785: ServletComponent ignores HttpBinding
---
 .../main/java/org/apache/camel/component/servlet/ServletComponent.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java
b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java
index 6163b56..a38dad7 100644
--- a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java
+++ b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java
@@ -296,7 +296,7 @@ public class ServletComponent extends HttpCommonComponent implements RestConsume
         ServletEndpoint endpoint = camelContext.getEndpoint(url, ServletEndpoint.class);
         setProperties(camelContext, endpoint, parameters);
 
-        if (!map.containsKey("httpBindingRef")) {
+        if (!map.containsKey("httpBinding")) {
             // use the rest binding, if not using a custom http binding
             HttpBinding binding = new ServletRestHttpBinding();
             binding.setHeaderFilterStrategy(endpoint.getHeaderFilterStrategy());


Mime
View raw message