// set the correct type of request based on method
if (method == "activateDomainKey" || method == "deactivateDomainKey") {
// create an empty post
+ req.preparePost();
verb = "POST";
} else if (method == "setTSIGKey") {
req.POST()["algorithm"] = parameters["algorithm"].string_value();
} else if (method == "startTransaction") {
addUrlComponent(parameters, "domain", ss);
addUrlComponent(parameters, "trxid", ss);
+ req.preparePost();
verb = "POST";
} else if (method == "commitTransaction" || method == "abortTransaction") {
addUrlComponent(parameters, "trxid", ss);
+ req.preparePost();
verb = "POST";
} else if (method == "calculateSOASerial") {
addUrlComponent(parameters, "domain", ss);
member == "real-remote" ||
member == "zone-id")) {
std::string hdr = "x-remotebackend-" + member;
- req.headers[hdr] = pair.second.string_value();
+ req.headers[hdr] = asString(pair.second);
}
};