add clear

This commit is contained in:
2020-04-03 17:30:22 +08:00
parent df41369095
commit 94b8a217d5
+3
View File
@@ -462,6 +462,8 @@ class HttpClient
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
$settings = $this->settings();
var_dump($settings);
if (!empty($settings)) {
$client->set($this->settings());
}
@@ -511,6 +513,7 @@ class HttpClient
$sslCert = $this->getSslCertFile();
$sslKey = $this->getSslKeyFile();
$sslCa = $this->getCa();
if (empty($sslCert) || empty($sslKey) || empty($sslCa)) {
return [];
}