add clear

This commit is contained in:
2020-04-05 23:41:18 +08:00
parent 5a42d843b9
commit e3d53af185
+3
View File
@@ -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;