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 2017/08/21 07:25:17 UTC

camel git commit: CAMEL-11671 dont rebuild the request and respect url encoding of the original request

Repository: camel
Updated Branches:
  refs/heads/master 9ff07fbba -> 945ac95d3


CAMEL-11671 dont rebuild the request and respect url encoding of the original request


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

Branch: refs/heads/master
Commit: 945ac95d356ae51d784221b3bd113b69fa1905a5
Parents: 9ff07fb
Author: Justin Heesemann <jh...@gmail.com>
Authored: Tue Aug 15 13:30:00 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Mon Aug 21 09:23:42 2017 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/component/ahc/AhcProducer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/945ac95d/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcProducer.java b/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcProducer.java
index 77fe61d..887a458 100644
--- a/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcProducer.java
+++ b/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcProducer.java
@@ -51,7 +51,7 @@ public class AhcProducer extends DefaultAsyncProducer {
             // AHC supports async processing
             Request request = getEndpoint().getBinding().prepareRequest(getEndpoint(), exchange);
             log.debug("Executing request {} ", request);
-            client.prepareRequest(request).execute(new AhcAsyncHandler(exchange, callback, request.getUrl(), getEndpoint().getBufferSize()));
+            client.executeRequest(request, new AhcAsyncHandler(exchange, callback, request.getUrl(), getEndpoint().getBufferSize()));
             return false;
         } catch (Exception e) {
             exchange.setException(e);