You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/09/27 16:33:09 UTC

[camel] branch master updated: Camel-Netty-HTTP: Fixes the build

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

acosentino 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 0b5622a  Camel-Netty-HTTP: Fixes the build
0b5622a is described below

commit 0b5622a498167257e946f6c706e93839025d5a01
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sun Sep 27 18:01:21 2020 +0200

    Camel-Netty-HTTP: Fixes the build
---
 .../camel/component/netty/http/NettyHttpSendDynamicAware.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpSendDynamicAware.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpSendDynamicAware.java
index c25786d..1a9ab7a 100644
--- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpSendDynamicAware.java
+++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpSendDynamicAware.java
@@ -26,10 +26,10 @@ public class NettyHttpSendDynamicAware extends HttpSendDynamicAware {
     public String[] parseUri(DynamicAwareEntry entry) {
         // camel-netty parses the uri a bit differently than camel-http-common base class
 
-        String scheme = entry.getProperties().get("protocol");
-        String host = entry.getProperties().get("host");
-        String port = entry.getProperties().get("port");
-        String path = entry.getProperties().get("path");
+        String scheme = (String) entry.getProperties().get("protocol");
+        String host = (String) entry.getProperties().get("host");
+        String port = (String) entry.getProperties().get("port");
+        String path = (String) entry.getProperties().get("path");
 
         String baseUrl = scheme + "://" + host;
         if (port != null) {