Skip to content

Commit 77e7a42

Browse files
author
Stephane Landelle
committed
minor clean up
1 parent 16b1c2d commit 77e7a42

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/com/ning/http/util/ProxyUtils.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import java.net.ProxySelector;
2525
import java.net.URI;
2626
import java.util.List;
27-
import java.util.Locale;
2827
import java.util.Properties;
2928

3029
import org.slf4j.Logger;
@@ -125,13 +124,11 @@ public static boolean avoidProxy(final ProxyServer proxyServer, final String hos
125124
if (hostname == null)
126125
throw new NullPointerException("hostname");
127126

128-
final String targetHost = hostname.toLowerCase(Locale.ENGLISH);
129-
130127
List<String> nonProxyHosts = proxyServer.getNonProxyHosts();
131128

132129
if (nonProxyHosts != null) {
133130
for (String nonProxyHost : nonProxyHosts) {
134-
if (matchNonProxyHost(targetHost, nonProxyHost))
131+
if (matchNonProxyHost(hostname, nonProxyHost))
135132
return true;
136133
}
137134
}

0 commit comments

Comments
 (0)