[libgweather/wip/hadess/fix-iwin-queries: 5/6] yrno: Link to met.no using HTTPS



commit ff63886d92a3c431a754dac11c2b47baf2185147
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Aug 26 15:01:05 2019 +0300

    yrno: Link to met.no using HTTPS

 libgweather/weather-owm.c  | 2 +-
 libgweather/weather-yrno.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgweather/weather-owm.c b/libgweather/weather-owm.c
index 063d5df..2e9d8b4 100644
--- a/libgweather/weather-owm.c
+++ b/libgweather/weather-owm.c
@@ -436,7 +436,7 @@ owm_start_open (GWeatherInfo *info)
     g_ascii_dtostr (latstr, sizeof(latstr), RADIANS_TO_DEGREES (loc->latitude));
     g_ascii_dtostr (lonstr, sizeof(lonstr), RADIANS_TO_DEGREES (loc->longitude));
 
-#define TEMPLATE_START "http://api.openweathermap.org/data/2.5/forecast?lat=%s&lon=%s&mode=xml&units=metric";
+#define TEMPLATE_START "https://api.openweathermap.org/data/2.5/forecast?lat=%s&lon=%s&mode=xml&units=metric";
 #ifdef OWM_APIKEY
  #define TEMPLATE TEMPLATE_START "&APPID=" OWM_APIKEY
 #else
diff --git a/libgweather/weather-yrno.c b/libgweather/weather-yrno.c
index b86866b..ace74e9 100644
--- a/libgweather/weather-yrno.c
+++ b/libgweather/weather-yrno.c
@@ -376,7 +376,7 @@ parse_forecast_xml_new (GWeatherInfo    *master_info,
 
        That's very nice of them!
     */
-    priv->forecast_attribution = g_strdup(_("Weather data from the <a href=\"http://www.met.no/\";>Norwegian 
Meteorological Institute</a>"));
+    priv->forecast_attribution = g_strdup(_("Weather data from the <a href=\"https://www.met.no/\";>Norwegian 
Meteorological Institute</a>"));
 
  out:
     xmlXPathFreeContext (xpath_ctx);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]