Allow backwards-compatible createSocket calls
This commit is contained in:
parent
b66ad6e4ff
commit
a8db310f2d
|
@ -63,7 +63,7 @@ public class PlainConnectionSocketFactory implements ConnectionSocketFactory {
|
|||
|
||||
@Override
|
||||
public Socket createSocket(final Proxy proxy, final HttpContext context) throws IOException {
|
||||
return proxy != null ? new Socket(proxy) : new Socket();
|
||||
return proxy != null ? new Socket(proxy) : createSocket(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -206,7 +206,7 @@ public class SSLConnectionSocketFactory implements LayeredConnectionSocketFactor
|
|||
|
||||
@Override
|
||||
public Socket createSocket(final Proxy proxy, final HttpContext context) throws IOException {
|
||||
return proxy != null ? new Socket(proxy) : new Socket();
|
||||
return proxy != null ? new Socket(proxy) : createSocket(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue