add clear

This commit is contained in:
2020-03-31 15:20:31 +08:00
parent 424634ee2b
commit cdc74e59a9
-9
View File
@@ -392,15 +392,6 @@ class HttpClient
{
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
echo $host . ':' . $this->getHostPort() . $url . PHP_EOL;
if (!empty($this->ssl_cert_file) && !empty($this->ssl_key_file)) {
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,
]);
}
if (!empty($this->agent)) {
$this->header['User-Agent'] = $this->agent;
}