Avoid non-ASCII characters in discovery requests
authorBastien Nocera <hadess@hadess.net>
Fri, 26 Jul 2013 19:47:15 +0000 (21:47 +0200)
committerBastien Nocera <hadess@hadess.net>
Sat, 27 Jul 2013 12:57:26 +0000 (14:57 +0200)
Using the application name means that we were using a
translated string. In some locales, this caused the Synology
NAS not to answer our requests.

Use the (usually) ASCII-only prgname instead.

https://bugzilla.gnome.org/show_bug.cgi?id=704953

libgssdp/gssdp-resource-browser.c

index 6a41e77..061181f 100644 (file)
@@ -1049,7 +1049,7 @@ send_discovery_request (GSSDPResourceBrowser *resource_browser)
         message = g_strdup_printf (SSDP_DISCOVERY_REQUEST,
                                    resource_browser->priv->target,
                                    resource_browser->priv->mx,
-                                   g_get_application_name () ?: "");
+                                   g_get_prgname () ?: "");
 
         _gssdp_client_send_message (resource_browser->priv->client,
                                     NULL,