[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 01/01: Set USER_AGENT for nominatim search (bug #13877)
noreply at xfce.org
noreply at xfce.org
Tue Oct 10 17:19:42 CEST 2017
This is an automated email from the git hooks/post-receive script.
h j u d t p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-weather-plugin.
commit 7c976663e8790e5b06ca31a4a3165b11aeb89f11
Author: Szymon Siwek <slsiwek+xfce at gmail.com>
Date: Tue Oct 10 17:16:35 2017 +0200
Set USER_AGENT for nominatim search (bug #13877)
This is required by https://operations.osmfoundation.org/policies/nominatim/.
Apparently, this is a new requirement or one that has not been enforced until
recently.
---
panel-plugin/weather.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 84f3049..c096795 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -1849,6 +1849,8 @@ xfceweather_create_control(XfcePanelPlugin *plugin)
/* Setup session for HTTP connections */
data->session = soup_session_async_new();
+ g_object_set(data->session, SOUP_SESSION_USER_AGENT,
+ PACKAGE_NAME "-" PACKAGE_VERSION, NULL);
g_object_set(data->session, SOUP_SESSION_TIMEOUT,
CONN_TIMEOUT, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list