add clear

This commit is contained in:
2020-09-24 11:41:23 +08:00
parent 4d24fd7dde
commit 03df0bfa4e
+1 -1
View File
@@ -380,11 +380,11 @@ class HttpClient
if ($this->isHttp($url) || $this->isHttps($url)) {
return $this->curl($url, $data);
}
var_dump($this->host,$url);
$url = $this->matchHost(ltrim($url, '/'));
if (!empty($this->port)) {
$this->host .= ':' . $this->port;
}
var_dump('https://' . $this->host . '/' . $url);
if ($this->isSSL) {
return $this->curl('https://' . $this->host . '/' . $url, $data);
} else {