add clear

This commit is contained in:
2020-12-02 18:51:52 +08:00
parent 3ca162fa85
commit f9a37089f7
+1 -1
View File
@@ -398,7 +398,7 @@ class HttpClient
return $this->curl($url, $data); return $this->curl($url, $data);
} }
$url = $this->matchHost(ltrim($url, '/')); $url = $this->matchHost(ltrim($url, '/'));
if (!empty($this->port)) { if (!empty($this->port) && $this->port != 443) {
$this->host .= ':' . $this->port; $this->host .= ':' . $this->port;
} }
if ($this->isSSL) { if ($this->isSSL) {