Allow backwards-compatible createSocket calls

This commit is contained in:
Clayton Walker 2024-01-16 13:05:09 -07:00 committed by Oleg Kalnichevski
parent b66ad6e4ff
commit a8db310f2d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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