]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Removed response body for POST request
authorChristian Jurk <cj@tfmt.de>
Tue, 12 Jul 2016 07:30:08 +0000 (09:30 +0200)
committerChristian Jurk <cj@tfmt.de>
Tue, 12 Jul 2016 07:30:08 +0000 (09:30 +0200)
pdns/ws-auth.cc

index 56056f9c476e1233ed0ece04ae1931c9251a4fc4..a374d5d1bc89a64b06bfad47903447940041de89 100644 (file)
@@ -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();
 }