Browse Source

fix method

Looly 5 years ago
parent
commit
7480d710cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hutool-http/src/main/java/cn/hutool/http/HttpRequest.java

+ 1 - 1
hutool-http/src/main/java/cn/hutool/http/HttpRequest.java

@@ -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);
 		}