[gnome-software/wip/rancell/ubuntu-ratings] Use the correct user agent string when downloading firmware
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-ratings] Use the correct user agent string when downloading firmware
- Date: Thu, 12 Nov 2015 02:29:34 +0000 (UTC)
commit cfad82a1610c8668d6722d2b5070844530d3155f
Author: Richard Hughes <richard hughsie com>
Date: Thu Nov 5 09:45:23 2015 +0000
Use the correct user agent string when downloading firmware
src/plugins/gs-plugin-fwupd.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 5324b87..ea64b37 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -50,13 +50,16 @@ struct GsPluginPrivate {
static gboolean
gs_plugin_fwupd_setup_networking (GsPlugin *plugin, GError **error)
{
+ g_autofree gchar *user_agent = NULL;
+
/* already set up */
if (plugin->priv->session != NULL)
return TRUE;
/* set up a session */
+ user_agent = g_strdup_printf ("%s/%s", PACKAGE_NAME, PACKAGE_VERSION);
plugin->priv->session = soup_session_new_with_options (SOUP_SESSION_USER_AGENT,
- "gnome-software",
+ user_agent,
NULL);
if (plugin->priv->session == NULL) {
g_set_error (error,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]