[libgovirt] proxy: Remove use of rest_proxy_call_add_header



commit 0ca34e0557de5ee64309030364a423fc4168c986
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Thu Jun 16 11:10:17 2016 +0200

    proxy: Remove use of rest_proxy_call_add_header
    
    Now that we have ovirt_proxy_add_header, we can use it in OvirtProxy
    rather than direct modifications of the RestProxyCall object.

 govirt/ovirt-proxy.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
index efe3284..10cc25f 100644
--- a/govirt/ovirt-proxy.c
+++ b/govirt/ovirt-proxy.c
@@ -155,8 +155,6 @@ static RestProxyCall *ovirt_rest_call_new(OvirtProxy *proxy,
         rest_proxy_call_set_method(call, method);
     }
     rest_proxy_call_set_function(call, href);
-    /* FIXME: to set or not to set ?? */
-    rest_proxy_call_add_header(call, "All-Content", "true");
 
     return call;
 }
@@ -901,6 +899,8 @@ static void ovirt_proxy_constructed(GObject *gobject)
         g_warning("Disabling strict checking of SSL certificates");
         g_object_set(OVIRT_PROXY(gobject), "ssl-strict", FALSE, NULL);
     }
+    /* FIXME: to set or not to set ?? */
+    ovirt_proxy_add_header(OVIRT_PROXY(gobject), "All-Content", "true");
     ovirt_proxy_add_header(OVIRT_PROXY(gobject), "Prefer", "persistent-auth");
     ovirt_proxy_add_header(OVIRT_PROXY(gobject), "Version", "3");
 


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