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();
$sslKey = $this->getSslKeyFile();
$sslCa = $this->getCa();
//
// if (empty($sslCert) || empty($sslKey) || empty($sslCa)) {
// return [];
// }
if (empty($sslCert) || empty($sslKey) || empty($sslCa)) {
return [];
}
$params['ssl_host_name'] = $this->host;
$params['ssl_cert_file'] = $this->getSslCertFile();
$params['ssl_key_file'] = $this->getSslKeyFile();