Fixes: #7796
Backport: giany, firefly
Need to set content length to this request, as the server might not
handle a chunked request (even though we don't send anything).
Tested-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit
3dd4ccad7fe97fc16a3ee4130549b48600bc485c)
validate.append_header("X-Auth-Token", admin_token);
+ validate.set_send_length(0);
+
int ret = validate.process(url.c_str());
if (ret < 0)
return ret;