Skip to content

Commit 91c0bb5

Browse files
committed
Fix regression caused by #76
1 parent 360a0d0 commit 91c0bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,7 @@ public Object call() throws Exception {
21162116

21172117
try {
21182118
log.debug("Connecting to proxy {} for scheme {}", proxyServer, request.getUrl());
2119-
upgradeProtocol(ctx.getChannel().getPipeline(), request.getUrl());
2119+
upgradeProtocol(ctx.getChannel().getPipeline(), URI.create(request.getUrl()).getScheme());
21202120
} catch (Throwable ex) {
21212121
abort(future, ex);
21222122
}

0 commit comments

Comments
 (0)