From 646ff6988e365235dea979591e0a7df999c24b41 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sun, 23 Oct 2022 19:57:47 +0200 Subject: [PATCH] Corrected ClientExecuteProxy example --- .../org/apache/hc/client5/http/examples/ClientExecuteProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientExecuteProxy.java b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientExecuteProxy.java index 85e8185f7..c56915500 100644 --- a/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientExecuteProxy.java +++ b/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientExecuteProxy.java @@ -57,7 +57,7 @@ public class ClientExecuteProxy { System.out.println("Executing request " + request.getMethod() + " " + request.getUri() + " via " + proxy); - httpclient.execute(request, response -> { + httpclient.execute(target, request, response -> { System.out.println("----------------------------------------"); System.out.println(request + "->" + new StatusLine(response)); EntityUtils.consume(response.getEntity());