add clear

This commit is contained in:
2020-03-31 15:14:35 +08:00
parent 7f04bc8af7
commit 424634ee2b
+2
View File
@@ -263,6 +263,7 @@ class HttpClient
if ($this->checkIsIp($host)) {
return $host;
}
$this->host = $host;
return System::gethostbyname($host);
}
@@ -395,6 +396,7 @@ class HttpClient
echo $this->ssl_cert_file . PHP_EOL;
echo $this->ssl_key_file . PHP_EOL;
$client->set([
'Host' => $this->host,
'ssl_cert_file' => $this->ssl_cert_file,
'ssl_key_file' => $this->ssl_key_file,
]);