add clear

This commit is contained in:
2020-03-31 14:59:18 +08:00
parent 809246f50e
commit 2ea3bd28c8
+2 -5
View File
@@ -256,11 +256,8 @@ class HttpClient
*/
private function parseUrlHost(&$url)
{
if (!empty($this->host)) {
$url = $this->host . '/' . ltrim($url, '/');
}
if (strpos($url, 'http') === false) {
$url = 'https://' . $url;
if (!$this->isHttps($url) && !$this->isHttp($url)) {
$url = $this->host . '/' . $url;
}
$host = $this->cutRequestUrl($url);
if ($this->checkIsIp($host)) {