[gnome-software/gnome-3-18] Use the correct user agent string when downloading firmware
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-18] Use the correct user agent string when downloading firmware
- Date: Thu, 5 Nov 2015 10:39:33 +0000 (UTC)
commit bdbcb5f8423ceb3f207359641d5129e188559cdc
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 d4629ac..3617f36 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -48,13 +48,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]