Skip to content

Commit 95ff7f1

Browse files
committed
Merge pull request AsyncHttpClient#1124 from jacobtolar/https-uri-over-proxy
HTTPS requests over HTTP CONNECT proxies should send relative URI once tunnel is established
2 parents b97ea44 + a7e1be1 commit 95ff7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/org/asynchttpclient/netty/request/NettyRequestFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private String requestUri(Uri uri, ProxyServer proxyServer, boolean connect) {
212212
// proxy tunnelling, connect need host and explicit port
213213
return getAuthority(uri);
214214

215-
else if (proxyServer != null)
215+
else if (proxyServer != null && !uri.isSecured())
216216
// proxy over HTTP, need full url
217217
return uri.toUrl();
218218

0 commit comments

Comments
 (0)