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 08:55:14 UTC

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

Repository: camel
Updated Branches:
  refs/heads/camel-2.19.x 305cd85ef -> 594d31985


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

This reverts commit 305cd85efe5ac5942a43ec7445939a9c05eda7c4.


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

Branch: refs/heads/camel-2.19.x
Commit: 594d31985eca86be6e5f2cab1559d10e18f3a6c0
Parents: 305cd85
Author: Andrea Cosentino <an...@gmail.com>
Authored: Mon Aug 21 10:54:52 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Mon Aug 21 10:54:52 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/594d3198/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 887a458..77fe61d 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.executeRequest(request, new AhcAsyncHandler(exchange, callback, request.getUrl(), getEndpoint().getBufferSize()));
+            client.prepareRequest(request).execute(new AhcAsyncHandler(exchange, callback, request.getUrl(), getEndpoint().getBufferSize()));
             return false;
         } catch (Exception e) {
             exchange.setException(e);