From 50378d868a56f8c77a644aa12624605102fde616 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 15 Jul 2014 12:46:08 +0200 Subject: [PATCH] Fix post to superMasterBackend We need to separate the individual rrs in the rrset. --- modules/remotebackend/httpconnector.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/remotebackend/httpconnector.cc b/modules/remotebackend/httpconnector.cc index 7986938acc..fe39619613 100644 --- a/modules/remotebackend/httpconnector.cc +++ b/modules/remotebackend/httpconnector.cc @@ -145,9 +145,9 @@ void HTTPConnector::restful_requestbuilder(const std::string &method, const rapi size_t index = 0; for(rapidjson::Value::ConstValueIterator itr = parameters["nsset"].Begin(); itr != parameters["nsset"].End(); itr++) { index++; - ss2 << buildMemberListArgs("nsset[" + boost::lexical_cast(index) + "]", itr); + ss2 << buildMemberListArgs("nsset[" + boost::lexical_cast(index) + "]", itr) << "&"; } - req.body = ss2.str(); + req.body = ss2.str().substr(0, ss2.str().size()-1); req.headers["content-type"] = "application/x-www-form-urlencoded; charset=utf-8"; req.headers["content-length"] = boost::lexical_cast(req.body.size()); verb = "POST"; -- 2.47.2