camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/5] git commit: CAMEL-7868: Fix concatenation of params to url
Date Sat, 27 Sep 2014 11:14:22 GMT
CAMEL-7868: Fix concatenation of params to url


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

Branch: refs/heads/camel-2.14.x
Commit: c492777d2895573f62e8a09664ef38e3885dcb8b
Parents: 96f9ab8
Author: david <david@davidkarlsen.com>
Authored: Sat Sep 27 10:30:49 2014 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Sep 27 13:14:02 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/component/jetty/JettyHttpComponent.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c492777d/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
index 0c51eb6d..d006577 100644
--- a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
+++ b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
@@ -995,7 +995,7 @@ public class JettyHttpComponent extends HttpComponent implements RestConsumerFac
 
         String url = "jetty:%s://%s:%s/%s?httpMethodRestrict=%s";
         if (!query.isEmpty()) {
-            url = url + "?" + query;
+            url = url + "&" + query;
         }
 
         // must use upper case for restrict


Mime
View raw message