Skip to content

Commit

Permalink
Fixes Invalid Proxy exception when using a SSL client without Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Tabin authored and ok2c committed Nov 23, 2023
1 parent 83d603c commit 6d60624
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d60624

Please sign in to comment.