diff options
author | Marcin Zelent <zelent.marcin@gmail.com> | 2017-11-24 11:01:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 11:01:03 +0100 |
commit | 6dc6392017611c591d7dd7759912e0a4c4b8d863 (patch) | |
tree | 66da8b854f4800b87cab217b863cbad15904e6c8 /src/AppBundle/Controller | |
parent | dd1bb138d5bb125ed1beb1bc63142cbe464096b6 (diff) |
Update NewDataController.php
Diffstat (limited to 'src/AppBundle/Controller')
-rw-r--r-- | src/AppBundle/Controller/NewDataController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AppBundle/Controller/NewDataController.php b/src/AppBundle/Controller/NewDataController.php index 1aacccc..2e083d9 100644 --- a/src/AppBundle/Controller/NewDataController.php +++ b/src/AppBundle/Controller/NewDataController.php @@ -23,7 +23,7 @@ class NewDataController 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 @@ -42,4 +42,4 @@ class NewDataController extends Controller } -}
\ No newline at end of file +} |