add clear
This commit is contained in:
@@ -390,7 +390,7 @@ class HttpClient
|
|||||||
private function generate_client($host, $url, $data)
|
private function generate_client($host, $url, $data)
|
||||||
{
|
{
|
||||||
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
$client = new SClient($host, $this->getHostPort(), $this->isSSL);
|
||||||
echo $host . ':' . $this->getHostPort() . '/' . $url . PHP_EOL;
|
echo $host . ':' . $this->getHostPort() . $url . PHP_EOL;
|
||||||
if (!empty($this->ssl_cert_file) && !empty($this->ssl_key_file)) {
|
if (!empty($this->ssl_cert_file) && !empty($this->ssl_key_file)) {
|
||||||
$client->set([
|
$client->set([
|
||||||
'ssl_cert_file' => $this->ssl_cert_file,
|
'ssl_cert_file' => $this->ssl_cert_file,
|
||||||
|
|||||||
Reference in New Issue
Block a user