From b791644067793fc1e122d8476c0920b68062f2d1 Mon Sep 17 00:00:00 2001 From: Christian Jurk Date: Tue, 12 Jul 2016 09:30:08 +0200 Subject: [PATCH] Removed response body for POST request --- pdns/ws-auth.cc | 7 ------- 1 file changed, 7 deletions(-) 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(); } -- 2.47.2