From 9d227da363822f114eefeae827cb827a78b951c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20=22Brolaugh=22=20Kindstr=C3=B6mmer?= Date: Wed, 27 Sep 2017 10:56:01 +0200 Subject: [PATCH] Make HTTPS default protocol --- src/Core/Communicator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Communicator.php b/src/Core/Communicator.php index 6d64157..68f43ed 100644 --- a/src/Core/Communicator.php +++ b/src/Core/Communicator.php @@ -213,7 +213,7 @@ private static function parseEndPoint(string $endPoint) * @param boolean $https Whether the the API call should use HTTPS or not(HTTP). * @return string The response from the API. */ - private function sendRequest(string $endPoint, string $method, string $content = "", bool $https = false): Response + private function sendRequest(string $endPoint, string $method, string $content = "", bool $https = true): Response { $url = ($https ? "https://" : "http://") . self::DOMAIN . "/" .$endPoint; $request = \Httpful\Request::init($method, 'application/json');