diff --git a/common/HttpClient.php b/common/HttpClient.php index fdfb6b8..3077b42 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -247,10 +247,13 @@ class HttpClient } $explode = explode('/', $url); $first = array_shift($explode); - if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) { - if (strpos($first, ':') !== false) { - [$first, $this->port] = explode(':', $first); + if (strpos($first, ':') !== false) { + [$first, $this->port] = explode(':', $first); + if ($this->port !== 443) { + $this->isSSL = false; } + } + if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) { return $first; } return System::gethostbyname($first);