You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/10/23 18:02:06 UTC
[httpcomponents-client] branch master updated (7ab435c27 -> ba45d80b0)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
from 7ab435c27 HTTPCLIENT-2236: MultihomeIOSessionRequester fails to enhance the cause exception in case of connect failure if the remoteAddress argument has been given
new 646ff6988 Corrected ClientExecuteProxy example
new ba45d80b0 HTTPCLIENT-2240: fixed incorrect CONNECT method initialization in ProxyClient
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../main/java/org/apache/hc/client5/http/impl/classic/ProxyClient.java | 2 +-
.../java/org/apache/hc/client5/http/examples/ClientExecuteProxy.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[httpcomponents-client] 02/02: HTTPCLIENT-2240: fixed incorrect CONNECT method initialization in ProxyClient
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit ba45d80b072072be322d49835659f20b32bf2fb0
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sun Oct 23 19:59:05 2022 +0200
HTTPCLIENT-2240: fixed incorrect CONNECT method initialization in ProxyClient
---
.../main/java/org/apache/hc/client5/http/impl/classic/ProxyClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProxyClient.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProxyClient.java
index 1c8a4e59a..6bee9fa25 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProxyClient.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ProxyClient.java
@@ -159,7 +159,7 @@ public class ProxyClient {
final HttpContext context = new BasicHttpContext();
ClassicHttpResponse response;
- final ClassicHttpRequest connect = new BasicClassicHttpRequest(Method.CONNECT, host.toHostString());
+ final ClassicHttpRequest connect = new BasicClassicHttpRequest(Method.CONNECT, proxy, host.toHostString());
final BasicCredentialsProvider credsProvider = new BasicCredentialsProvider();
credsProvider.setCredentials(new AuthScope(proxy), credentials);
[httpcomponents-client] 01/02: Corrected ClientExecuteProxy example
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit 646ff6988e365235dea979591e0a7df999c24b41
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sun Oct 23 19:57:47 2022 +0200
Corrected ClientExecuteProxy example
---
.../java/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());