|
|
3584c8 |
From 1e3706da2a737e78c879847d31c55226c990b338 Mon Sep 17 00:00:00 2001
|
|
|
3584c8 |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
3584c8 |
Date: Tue, 12 Jan 2021 14:22:28 +0100
|
|
|
3584c8 |
Subject: [PATCH 5/7] metno: Use "&" as arguments separator in query
|
|
|
3584c8 |
|
|
|
3584c8 |
According to the HTML5 spec ";" is no longer allowed. This was
|
|
|
3584c8 |
automatically rewritten in Varnish, but was temporary measure
|
|
|
3584c8 |
and was likely to disappear if on cache/load balancer change.
|
|
|
3584c8 |
|
|
|
3584c8 |
Closes: #72
|
|
|
3584c8 |
---
|
|
|
3584c8 |
libgweather/weather-yrno.c | 2 +-
|
|
|
3584c8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
3584c8 |
|
|
|
3584c8 |
diff --git a/libgweather/weather-yrno.c b/libgweather/weather-yrno.c
|
|
|
3584c8 |
index 13ee8537..e5c2e75a 100644
|
|
|
3584c8 |
--- a/libgweather/weather-yrno.c
|
|
|
3584c8 |
+++ b/libgweather/weather-yrno.c
|
|
|
3584c8 |
@@ -597,7 +597,7 @@ yrno_start_open_new (GWeatherInfo *info)
|
|
|
3584c8 |
g_ascii_dtostr (latstr, sizeof(latstr), RADIANS_TO_DEGREES (loc->latitude));
|
|
|
3584c8 |
g_ascii_dtostr (lonstr, sizeof(lonstr), RADIANS_TO_DEGREES (loc->longitude));
|
|
|
3584c8 |
|
|
|
3584c8 |
- url = g_strdup_printf("https://" API_ENDPOINT_DOMAIN "/weatherapi/locationforecast/2.0/classic?lat=%s;lon=%s", latstr, lonstr);
|
|
|
3584c8 |
+ url = g_strdup_printf("https://" API_ENDPOINT_DOMAIN "/weatherapi/locationforecast/2.0/classic?lat=%s&lon=%s", latstr, lonstr);
|
|
|
3584c8 |
|
|
|
3584c8 |
message = soup_message_new ("GET", url);
|
|
|
3584c8 |
_gweather_info_begin_request (info, message);
|
|
|
3584c8 |
--
|
|
|
3584c8 |
2.30.2
|
|
|
3584c8 |
|