mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix method
This commit is contained in:
parent
fdf735fa05
commit
7480d710cb
@ -878,7 +878,7 @@ public class HttpRequest extends HttpBase<HttpRequest> {
|
||||
public HttpRequest setSSLProtocol(String protocol) {
|
||||
Assert.notBlank(protocol, "protocol must be not blank!");
|
||||
try {
|
||||
this.ssf = SSLSocketFactoryBuilder.create().setProtocol(protocol).build();
|
||||
setSSLSocketFactory(SSLSocketFactoryBuilder.create().setProtocol(protocol).build());
|
||||
} catch (Exception e) {
|
||||
throw new HttpException(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user