Skip to content

Commit e641ccb

Browse files
committed
Proxy protocol loss
It defaults to HTTP while proxy may be HTTPS Fixes #745
1 parent 145588b commit e641ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maven-resolver-transport-apache/src/main/java/org/eclipse/aether/transport/apache/ApacheTransporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ private InetAddress getHttpLocalAddress(RepositorySystemSession session, RemoteR
392392
private static HttpHost toHost(Proxy proxy) {
393393
HttpHost host = null;
394394
if (proxy != null) {
395-
host = new HttpHost(proxy.getHost(), proxy.getPort());
395+
host = new HttpHost(proxy.getHost(), proxy.getPort(), proxy.getType());
396396
}
397397
return host;
398398
}

0 commit comments

Comments
 (0)