add clear

This commit is contained in:
2020-04-03 17:41:14 +08:00
parent cda357bc68
commit 7bdbf14baf
+4 -4
View File
@@ -507,10 +507,10 @@ class HttpClient
$sslCert = $this->getSslCertFile(); $sslCert = $this->getSslCertFile();
$sslKey = $this->getSslKeyFile(); $sslKey = $this->getSslKeyFile();
$sslCa = $this->getCa(); $sslCa = $this->getCa();
//
// if (empty($sslCert) || empty($sslKey) || empty($sslCa)) { if (empty($sslCert) || empty($sslKey) || empty($sslCa)) {
// return []; return [];
// } }
$params['ssl_host_name'] = $this->host; $params['ssl_host_name'] = $this->host;
$params['ssl_cert_file'] = $this->getSslCertFile(); $params['ssl_cert_file'] = $this->getSslCertFile();
$params['ssl_key_file'] = $this->getSslKeyFile(); $params['ssl_key_file'] = $this->getSslKeyFile();