Fixes Invalid Proxy exception when using a SSL client without Proxy
This commit is contained in:
parent
83d603c9d8
commit
6d60624cd3
|
@ -206,7 +206,7 @@ public class SSLConnectionSocketFactory implements LayeredConnectionSocketFactor
|
|||
|
||||
@Override
|
||||
public Socket createSocket(final Proxy proxy, final HttpContext context) throws IOException {
|
||||
return new Socket(proxy);
|
||||
return proxy != null ? new Socket(proxy) : new Socket();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue