summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2021-07-25 21:27:11 +0800
committerVictor Kareh <[email protected]>2021-07-28 07:59:51 -0400
commitadfcf56e8a794ef2cefa89f5115067e667c07185 (patch)
treee24a8c3a83601600e0b1d7499d18b5cf73de656a
parentc018cd4659d99581d83aae5cd20b89b5b8c6655a (diff)
downloadlibmateweather-adfcf56e8a794ef2cefa89f5115067e667c07185.tar.bz2
libmateweather-adfcf56e8a794ef2cefa89f5115067e667c07185.tar.xz
Using soup_session_new replaces the deprecated soup_session_async_new
-rw-r--r--libmateweather/weather.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmateweather/weather.c b/libmateweather/weather.c
index 5b7bbe4..3b7642b 100644
--- a/libmateweather/weather.c
+++ b/libmateweather/weather.c
@@ -553,9 +553,7 @@ _weather_info_fill (WeatherInfo *info,
info->cb_data = data;
if (!info->session) {
- info->session = soup_session_async_new ();
- soup_session_add_feature_by_type (info->session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT);
- g_object_set (G_OBJECT (info->session), "ssl-use-system-ca-file", TRUE, NULL);
+ info->session = soup_session_new ();
}
metar_start_open (info);