diff --git a/src/Apollo.php b/src/Apollo.php index 1ebf60c..8a4e2de 100644 --- a/src/Apollo.php +++ b/src/Apollo.php @@ -74,7 +74,8 @@ public function request(string $uri, array $options, int $timeout): array } // Request - $client = new Client($this->host, $this->port); + $isSsl = $this->port == 443 ? true : false; + $client = new Client($this->host, $this->port, $isSsl); $client->set(['timeout' => $timeout]); $client->get($uri); $body = $client->body;