summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Core/Communicator.php2
1 files changed, 1 insertions, 1 deletions
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 @@ class Communicator
* @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');