diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index de9ff5d..0b5fe11 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -462,6 +462,8 @@ class HttpClient $client = new SClient($host, $this->getHostPort(), $this->isSSL); $settings = $this->settings(); + var_dump($settings); + if (!empty($settings)) { $client->set($this->settings()); } @@ -511,6 +513,7 @@ class HttpClient $sslCert = $this->getSslCertFile(); $sslKey = $this->getSslKeyFile(); $sslCa = $this->getCa(); + if (empty($sslCert) || empty($sslKey) || empty($sslCa)) { return []; }