[libgovirt] Use matrix parameters for resource GET calls



commit 040646729a69631a5ce913e8abbaa655108249e5
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Oct 7 11:48:07 2013 +0200

    Use matrix parameters for resource GET calls
    
    OvirtResourceRestCall uses query parameters for GET requests (?param=value)
    but this is deprecated in favour of matrix parameters (;param=value)
    While both are currently working, it's more future proof to use the latter
    format.

 govirt/ovirt-resource-rest-call.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/govirt/ovirt-resource-rest-call.c b/govirt/ovirt-resource-rest-call.c
index 96f1934..6683bfc 100644
--- a/govirt/ovirt-resource-rest-call.c
+++ b/govirt/ovirt-resource-rest-call.c
@@ -100,7 +100,7 @@ static void append_params(OvirtResourceRestCall *call, RestParams *params)
 
         serialized_params = soup_form_encode_hash(params_hash);
         g_object_get(G_OBJECT(call), "href", &href, NULL);
-        new_href = g_strconcat(href, "?", serialized_params, NULL);
+        new_href = g_strconcat(href, ";", serialized_params, NULL);
         g_object_set(G_OBJECT(call), "href", new_href, NULL);
         g_warning("PARAMS: [%s]", serialized_params);
         g_warning("NEW HREF: [%s]", new_href);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]