diff options
author | Hannes "Brolaugh" Kindströmmer <hannes.kindstrommer@ip1.se> | 2017-09-27 10:56:15 +0200 |
---|---|---|
committer | Hannes "Brolaugh" Kindströmmer <hannes.kindstrommer@ip1.se> | 2017-09-27 10:56:15 +0200 |
commit | 84a0fb852f91c406d3c5f7c0301d75342609c94f (patch) | |
tree | 46da51e43916cc183bdb5af357e926d2f2518312 | |
parent | 9bce456599f550f837b83ba4820a830641048248 (diff) | |
parent | 9d227da363822f114eefeae827cb827a78b951c5 (diff) | |
download | ip1-php-sdk-84a0fb852f91c406d3c5f7c0301d75342609c94f.zip ip1-php-sdk-84a0fb852f91c406d3c5f7c0301d75342609c94f.tar.gz ip1-php-sdk-84a0fb852f91c406d3c5f7c0301d75342609c94f.tar.bz2 |
Merge branch 'hotfix/0.3.3-beta'
-rw-r--r-- | src/Core/Communicator.php | 2 |
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'); |