summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes "Brolaugh" Kindströmmer <hannes.kindstrommer@ip1.se>2017-09-27 10:56:15 +0200
committerHannes "Brolaugh" Kindströmmer <hannes.kindstrommer@ip1.se>2017-09-27 10:56:15 +0200
commit84a0fb852f91c406d3c5f7c0301d75342609c94f (patch)
tree46da51e43916cc183bdb5af357e926d2f2518312
parent9bce456599f550f837b83ba4820a830641048248 (diff)
parent9d227da363822f114eefeae827cb827a78b951c5 (diff)
downloadip1-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.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');