[rygel] core: Prefix service URLs with a "/"
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Prefix service URLs with a "/"
- Date: Mon, 16 Aug 2010 01:27:16 +0000 (UTC)
commit 3aae76d16d850864c3276375653385a7fed264ce
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Aug 16 04:23:44 2010 +0300
core: Prefix service URLs with a "/"
This seems like the right way to do it and it might actually improve our
IOP.
src/rygel/rygel-root-device-factory.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-root-device-factory.vala b/src/rygel/rygel-root-device-factory.vala
index 9cc0dc9..b2d7477 100644
--- a/src/rygel/rygel-root-device-factory.vala
+++ b/src/rygel/rygel-root-device-factory.vala
@@ -226,13 +226,13 @@ internal class Rygel.RootDeviceFactory {
service_node->new_child (null, "serviceId", resource_info.upnp_id);
/* Now the relative (to base URL) URLs*/
- string url = resource_info.description_path;
+ string url = "/" + resource_info.description_path;
service_node->new_child (null, "SCPDURL", url);
- url = plugin_name + "/" + resource_info.type.name () + "/Event";
+ url = "/" + plugin_name + "/" + resource_info.type.name () + "/Event";
service_node->new_child (null, "eventSubURL", url);
- url = plugin_name + "/" + resource_info.type.name () + "/Control";
+ url = "/" + plugin_name + "/" + resource_info.type.name () + "/Control";
service_node->new_child (null, "controlURL", url);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]