From: Christian Jurk Date: Tue, 12 Jul 2016 07:30:08 +0000 (+0200) Subject: Removed response body for POST request X-Git-Tag: dnsdist-1.1.0-beta2~141^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b791644067793fc1e122d8476c0920b68062f2d1;p=thirdparty%2Fpdns.git Removed response body for POST request --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 56056f9c47..a374d5d1bc 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -628,14 +628,7 @@ static void apiZoneMetadata(HttpRequest* req, HttpResponse *resp) { if (!B.setDomainMetadata(zonename, kind, vecMetadata)) throw ApiException("Could not update metadata entries for domain '" + zonename.toString() + "'"); - Json::object key { - { "type", "Metadata" }, - { "kind", document["kind"] }, - { "metadata", metadata } - }; - resp->status = 201; - resp->setBody(key); } else throw HttpMethodNotAllowedException(); }