[gupnp] context: Use ASCII-only user-agent
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] context: Use ASCII-only user-agent
- Date: Sat, 27 Jul 2013 13:03:49 +0000 (UTC)
commit ee09644861ac6f67606f3c0a5f78b295bb3a582c
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 26 21:08:13 2013 +0200
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
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]