diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-07-26 21:08:13 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-07-26 21:50:25 +0200 |
commit | ee09644861ac6f67606f3c0a5f78b295bb3a582c (patch) | |
tree | c88eac502e260ca00878baf6681304fb39765507 | |
parent | 552b9e7ae4686d638e1978253e391a0452c5f372 (diff) | |
download | gupnp-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.c | 2 |
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, |