[libgweather/wip/hadess/met-no-fixes: 2/2] met.no: Use "&" as arguments separator in query




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

    met.no: 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-metno.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/weather-metno.c b/libgweather/weather-metno.c
index 94d35d69..ded30434 100644
--- a/libgweather/weather-metno.c
+++ b/libgweather/weather-metno.c
@@ -444,7 +444,7 @@ metno_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 ("metno_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]