add clear
This commit is contained in:
@@ -462,6 +462,8 @@ class HttpClient
|
|||||||
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
||||||
|
|
||||||
$settings = $this->settings();
|
$settings = $this->settings();
|
||||||
|
var_dump($settings);
|
||||||
|
|
||||||
if (!empty($settings)) {
|
if (!empty($settings)) {
|
||||||
$client->set($this->settings());
|
$client->set($this->settings());
|
||||||
}
|
}
|
||||||
@@ -511,6 +513,7 @@ 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 [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user