summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-07-26 21:08:13 +0200
committerBastien Nocera <hadess@hadess.net>2013-07-26 21:50:25 +0200
commitee09644861ac6f67606f3c0a5f78b295bb3a582c (patch)
treec88eac502e260ca00878baf6681304fb39765507
parent552b9e7ae4686d638e1978253e391a0452c5f372 (diff)
downloadgupnp-ee09644861ac6f67606f3c0a5f78b295bb3a582c.tar.gz
context: Use ASCII-only user-agent
We were using the application name, which is translated, as the identifier for our program in the user-agent. This caused some UPnP servers, such as the one built into Synology NAS to fail to answer our announcement requests. Use the program name instead, as this is supposed to be ASCII only. https://bugzilla.gnome.org/show_bug.cgi?id=704953
-rw-r--r--libgupnp/gupnp-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 05b9325..81c030c 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -183,7 +183,7 @@ gupnp_context_initable_init (GInitable *initable,
NULL);
user_agent = g_strdup_printf ("%s GUPnP/" VERSION " DLNADOC/1.50",
- g_get_application_name ()? : "");
+ g_get_prgname ()? : "");
g_object_set (context->priv->session,
SOUP_SESSION_USER_AGENT,
user_agent,