aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <zelent.marcin@gmail.com>2017-11-24 11:00:49 +0100
committerGitHub <noreply@github.com>2017-11-24 11:00:49 +0100
commitdd1bb138d5bb125ed1beb1bc63142cbe464096b6 (patch)
treefd2e2147aa585de52817a02dbb31f9d93c38ea19 /src/AppBundle
parent1e0b1fa7ac2ad0ae07591aca296e3ef33839ef5e (diff)
Update HomeController.php
Diffstat (limited to 'src/AppBundle')
-rw-r--r--src/AppBundle/Controller/HomeController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AppBundle/Controller/HomeController.php b/src/AppBundle/Controller/HomeController.php
index 6190951..f6ee8b9 100644
--- a/src/AppBundle/Controller/HomeController.php
+++ b/src/AppBundle/Controller/HomeController.php
@@ -23,7 +23,7 @@ class HomeController extends Controller
{
// Get cURL resource
$curl = curl_init();
- curl_setopt($curl, CURLOPT_URL, "http://pollutometerapi.azurewebsites.net/api/Readings/latest");
+ curl_setopt($curl, CURLOPT_URL, "https://pollutometerapi.azurewebsites.net/api/Readings/latest");
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json')); // Assuming you're requesting JSON
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// Send the request & save response to $resp
@@ -38,4 +38,4 @@ class HomeController extends Controller
return $this->render('default/index.html.twig',$data);
}
-} \ No newline at end of file
+}