summaryrefslogtreecommitdiff
path: root/govirt/ovirt-rest-call.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-04-07 17:58:03 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2017-05-05 11:01:34 +0200
commit7eb2a25a44be505bc1c2d5e4cd81144cfc186826 (patch)
treee699fcd57aeb913c806afce2e35c4a2c32417c03 /govirt/ovirt-rest-call.c
parent3c9adae6a2e3637fa8ed38e1881d4287e19009c9 (diff)
Add Prefer: csrf-protection header
WAIT UNTIL THIS IS PUBLICLY DOCUMENTED
Diffstat (limited to 'govirt/ovirt-rest-call.c')
-rw-r--r--govirt/ovirt-rest-call.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/govirt/ovirt-rest-call.c b/govirt/ovirt-rest-call.c
index cab3240..b7bf3cb 100644
--- a/govirt/ovirt-rest-call.c
+++ b/govirt/ovirt-rest-call.c
@@ -127,6 +127,8 @@ static void ovirt_rest_call_constructed(GObject *object)
} else {
rest_proxy_call_add_header(REST_PROXY_CALL(object), "Filter", "true");
}
+ rest_proxy_call_add_header(REST_PROXY_CALL(object),
+ "Prefer", "persistent-auth, csrf-protection");
ovirt_proxy_append_additional_headers(proxy, REST_PROXY_CALL(object));
g_object_unref(proxy);