add clear

This commit is contained in:
2020-04-03 17:42:47 +08:00
parent 7bdbf14baf
commit 07a00bd4b0
+2 -1
View File
@@ -461,7 +461,7 @@ class HttpClient
{
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
$client->set($this->settings());
// $client->set($this->settings());
if (!empty($this->agent)) {
$this->header['User-Agent'] = $this->agent;
}
@@ -511,6 +511,7 @@ class HttpClient
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();