add clear
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user