Skip to content

Commit 37f2e11

Browse files
authored
Merge pull request #126 from Erulezz/patch-1
Update API URLs to use HTTPS
2 parents 92edee8 + b7923aa commit 37f2e11

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Cmfcmf/OpenWeatherMap.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -41,37 +41,37 @@ class OpenWeatherMap
4141
*
4242
* @var string $copyright
4343
*/
44-
const COPYRIGHT = "Weather data from <a href=\"http://openweathermap.org\">OpenWeatherMap.org</a>";
44+
const COPYRIGHT = "Weather data from <a href=\"https://openweathermap.org\">OpenWeatherMap.org</a>";
4545

4646
/**
4747
* @var string The basic api url to fetch weather data from.
4848
*/
49-
private $weatherUrl = 'http://api.openweathermap.org/data/2.5/weather?';
49+
private $weatherUrl = 'https://api.openweathermap.org/data/2.5/weather?';
5050

5151
/**
5252
* @var string The basic api url to fetch weather group data from.
5353
*/
54-
private $weatherGroupUrl = 'http://api.openweathermap.org/data/2.5/group?';
54+
private $weatherGroupUrl = 'https://api.openweathermap.org/data/2.5/group?';
5555

5656
/**
5757
* @var string The basic api url to fetch weekly forecast data from.
5858
*/
59-
private $weatherHourlyForecastUrl = 'http://api.openweathermap.org/data/2.5/forecast?';
59+
private $weatherHourlyForecastUrl = 'https://api.openweathermap.org/data/2.5/forecast?';
6060

6161
/**
6262
* @var string The basic api url to fetch daily forecast data from.
6363
*/
64-
private $weatherDailyForecastUrl = 'http://api.openweathermap.org/data/2.5/forecast/daily?';
64+
private $weatherDailyForecastUrl = 'https://api.openweathermap.org/data/2.5/forecast/daily?';
6565

6666
/**
6767
* @var string The basic api url to fetch history weather data from.
6868
*/
69-
private $weatherHistoryUrl = 'http://history.openweathermap.org/data/2.5/history/city?';
69+
private $weatherHistoryUrl = 'https://history.openweathermap.org/data/2.5/history/city?';
7070

7171
/**
7272
* @var string The basic api url to fetch uv index data from.
7373
*/
74-
private $uvIndexUrl = 'http://api.openweathermap.org/v3/uvi';
74+
private $uvIndexUrl = 'https://api.openweathermap.org/v3/uvi';
7575

7676
/**
7777
* @var AbstractCache|bool $cache The cache to use.

0 commit comments

Comments
 (0)