add clear

This commit is contained in:
2021-04-06 15:28:16 +08:00
parent 74847b2a2d
commit 589b92c152
+1 -1
View File
@@ -400,7 +400,7 @@ class HttpClient
return $this->curl($url, $data);
}
$url = $this->matchHost(ltrim($url, '/'));
if (!empty($this->port)) {
if (!empty($this->port) && $this->checkIsIp($this->host)) {
$this->host .= ':' . $this->port;
}
var_dump('https://' . $this->host . '/' . $url);