Skip to content

Commit 4ee4b8b

Browse files
committed
fux the icon url
1 parent 98e99f8 commit 4ee4b8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cmfcmf/OpenWeatherMap/Util/Weather.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Weather
4242
*
4343
* @see self::getIconUrl() to see how it is used.
4444
*/
45-
private $iconUrl = "http://openweathermap.org/img/w/%s.png";
45+
private $iconUrl = "//openweathermap.org/img/w/%s.png";
4646

4747
/**
4848
* Create a new weather object.

tests/Util/WeatherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function test__toString()
3838

3939
public function testGetIconUrl()
4040
{
41-
$expectIconLink = 'http://openweathermap.org/img/w/11d.png';
41+
$expectIconLink = '//openweathermap.org/img/w/11d.png';
4242
$weather = $this->weather;
4343
$iconLink = $weather->getIconUrl();
4444

0 commit comments

Comments
 (0)