Skip to content

Commit d850e4e

Browse files
author
Stephane Landelle
committed
Backport ProxyUtils clean up, close AsyncHttpClient#507
1 parent 9725d77 commit d850e4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public ProxyServer select(URI uri) {
205205
case HTTP:
206206
if (!(proxy.address() instanceof InetSocketAddress)) {
207207
log.warn("Don't know how to connect to address " + proxy.address());
208+
return null;
208209
} else {
209210
InetSocketAddress address = (InetSocketAddress) proxy.address();
210211
return new ProxyServer(Protocol.HTTP, address.getHostName(), address.getPort());

0 commit comments

Comments
 (0)