[libgweather/wip/hadess/fix-iwin-queries: 1/3] owm: Use HTTPS for query



commit b3a74740ff28c45e316cc5b662e4f4aa3587eb0d
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Aug 26 15:00:35 2019 +0300

    owm: Use HTTPS for query

 libgweather/weather-owm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgweather/weather-owm.c b/libgweather/weather-owm.c
index 2fdd32f..2e9d8b4 100644
--- a/libgweather/weather-owm.c
+++ b/libgweather/weather-owm.c
@@ -380,7 +380,7 @@ parse_forecast_xml (GWeatherInfo    *master_info,
     if (!xpath_result || xpath_result->type != XPATH_NODESET)
        goto out;
 
-    priv->forecast_attribution = g_strdup(_("Weather data from the <a 
href=\"http://openweathermap.org\";>Open Weather Map project</a>"));
+    priv->forecast_attribution = g_strdup(_("Weather data from the <a 
href=\"https://openweathermap.org\";>Open Weather Map project</a>"));
 
  out:
     if (xpath_result)
@@ -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


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