Skip to content

Commit 25c5420

Browse files
committed
Resolve the issue when nonProxyHosts were initialized
1 parent a6e6f5b commit 25c5420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http-clients/netty-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/ProxyConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private static final class BuilderImpl implements Builder {
260260
private int port = 0;
261261
private String username;
262262
private String password;
263-
private Set<String> nonProxyHosts = Collections.emptySet();
263+
private Set<String> nonProxyHosts;
264264
private Boolean useSystemPropertyValues = Boolean.TRUE;
265265

266266
private BuilderImpl() {
@@ -271,7 +271,7 @@ private BuilderImpl(ProxyConfiguration proxyConfiguration) {
271271
this.scheme = proxyConfiguration.scheme;
272272
this.host = proxyConfiguration.host;
273273
this.port = proxyConfiguration.port;
274-
this.nonProxyHosts = new HashSet<>(proxyConfiguration.nonProxyHosts);
274+
this.nonProxyHosts = proxyConfiguration.nonProxyHosts;
275275
this.username = proxyConfiguration.username;
276276
this.password = proxyConfiguration.password;
277277
}

0 commit comments

Comments
 (0)