Corrected ClientExecuteProxy example

This commit is contained in:
Oleg Kalnichevski 2022-10-23 19:57:47 +02:00
parent 7ab435c271
commit 646ff6988e
1 changed files with 1 additions and 1 deletions

View File

@ -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());