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



commit 43d8586b7fd909d7e1499b0f243626f3b2f8117d
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Aug 26 15:00:17 2019 +0300

    iwin: Use HTTPS for query

 libgweather/weather-iwin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/weather-iwin.c b/libgweather/weather-iwin.c
index 7586d05..c026391 100644
--- a/libgweather/weather-iwin.c
+++ b/libgweather/weather-iwin.c
@@ -375,7 +375,7 @@ iwin_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));
-    url = g_strdup_printf 
("http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?&lat=%s&lon=%s&format=24+hourly&startDate=%04d-%02d-%02d&numDays=7";,
+    url = g_strdup_printf 
("https://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?&lat=%s&lon=%s&format=24+hourly&startDate=%04d-%02d-%02d&numDays=7";,
                           latstr, lonstr, 1900 + tm.tm_year, 1 + tm.tm_mon, tm.tm_mday);
     g_debug ("iwin_start_open, requesting: %s", url);
     msg = soup_message_new ("GET", url);


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