mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-28 05:39:07 +00:00
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 Socket createSocket(final HttpContext context) throws IOException {
|
||||
|
||||
@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…
x
Reference in New Issue
Block a user