diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index 24398e8..57cb769 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -518,6 +518,9 @@ class HttpClient { var_dump($host, $this->getHostPort(), $url); $client = new SClient($host, $this->getHostPort(), $this->isSSL); + if (strpos($url, '/') !== 0) { + $url = '/' . $url; + } $client->set($this->settings()); if (!empty($this->agent)) { $this->header['User-Agent'] = $this->agent;