[libgweather/benzea/gnome-3-36-met.no-backport: 6/10] metno: Use "&" as arguments separator in query




commit 07935ed79e18e4d853d095350391420e36f9bc47
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 12 14:22:28 2021 +0100

    metno: Use "&" as arguments separator in query
    
    According to the HTML5 spec ";" is no longer allowed. This was
    automatically rewritten in Varnish, but was temporary measure
    and was likely to disappear if on cache/load balancer change.
    
    Closes: #72

 libgweather/weather-yrno.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/weather-yrno.c b/libgweather/weather-yrno.c
index 9b786285..06c10822 100644
--- a/libgweather/weather-yrno.c
+++ b/libgweather/weather-yrno.c
@@ -452,7 +452,7 @@ yrno_start_open (GWeatherInfo *info)
     latstr = _radians_to_degrees_str (loc->latitude);
     lonstr = _radians_to_degrees_str (loc->longitude);
 
-    url = g_strdup_printf("https://"; API_ENDPOINT_DOMAIN 
"/weatherapi/locationforecast/2.0/classic?lat=%s;lon=%s", latstr, lonstr);
+    url = g_strdup_printf("https://"; API_ENDPOINT_DOMAIN 
"/weatherapi/locationforecast/2.0/classic?lat=%s&lon=%s", latstr, lonstr);
     g_debug ("yrno_start_open, requesting: %s", url);
 
     message = soup_message_new ("GET", url);


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