Skip to content

Commit e3628d3

Browse files
committed
Changes for #364.
1 parent 1f23d36 commit e3628d3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: src/main/java/com/ning/http/client/providers/grizzly/GrizzlyAsyncHttpProvider.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -2434,8 +2434,12 @@ public void updated(Connection result) {
24342434
}
24352435

24362436
private static String getPoolKey(Request request, ProxyServer proxyServer) {
2437-
URI uri = proxyServer != null? proxyServer.getURI(): request.getURI();
2438-
return request.getConnectionPoolKeyStrategy().getKey(uri);
2437+
String serverPart =
2438+
request.getConnectionPoolKeyStrategy().getKey(request.getURI());
2439+
return proxyServer != null
2440+
? AsyncHttpProviderUtils.getBaseUrl(proxyServer.getURI())
2441+
+ serverPart
2442+
: serverPart;
24392443
}
24402444

24412445
// ------------------------------------------------------ Nested Classes

0 commit comments

Comments
 (0)