mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +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) {
|
public HttpRequest setSSLProtocol(String protocol) {
|
||||||
Assert.notBlank(protocol, "protocol must be not blank!");
|
Assert.notBlank(protocol, "protocol must be not blank!");
|
||||||
try {
|
try {
|
||||||
this.ssf = SSLSocketFactoryBuilder.create().setProtocol(protocol).build();
|
setSSLSocketFactory(SSLSocketFactoryBuilder.create().setProtocol(protocol).build());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new HttpException(e);
|
throw new HttpException(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user