diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2016-06-16 11:10:17 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2016-06-16 11:50:36 +0200 |
commit | 0ca34e0557de5ee64309030364a423fc4168c986 (patch) | |
tree | 5e2a9702372151bb04036eeb5a7149d7ba0a9ce1 | |
parent | 948ce7168efa7c1fca5f1f6390f94191d709590b (diff) |
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.
-rw-r--r-- | 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"); |