From 373314bbb3bd714621d1618e098798d8b768b515 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 4 May 2018 12:02:13 +0200 Subject: [PATCH] auth-api: remove headers --- pdns/ws-auth.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 4ec9e3bf1..97d282042 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -552,7 +552,7 @@ static void throwUnableToSecure(const DNSName& zonename) { + "capable backends are loaded, or because the backends have DNSSEC disabled. Check your configuration."); } -static void updateDomainSettingsFromDocument(UeberBackend& B, const DomainInfo& di, const DNSName& zonename, const Json document, HttpResponse* resp) { +static void updateDomainSettingsFromDocument(UeberBackend& B, const DomainInfo& di, const DNSName& zonename, const Json document) { string zonemaster; bool shouldRectify = false; for(auto value : document["masters"].array_items()) { @@ -689,11 +689,6 @@ static void updateDomainSettingsFromDocument(UeberBackend& B, const DomainInfo& throw ApiException("Hosting backend does not support editing records."); } } - - // return old and new serials in headers - resp->headers["X-PDNS-Old-Serial"] = std::to_string(sd.serial); - fillSOAData(rr.content, sd); - resp->headers["X-PDNS-New-Serial"] = std::to_string(sd.serial); } } } @@ -1371,7 +1366,7 @@ static void apiServerZones(HttpRequest* req, HttpResponse* resp) { di.backend->feedComment(c); } - updateDomainSettingsFromDocument(B, di, zonename, document, resp); + updateDomainSettingsFromDocument(B, di, zonename, document); di.backend->commitTransaction(); @@ -1407,7 +1402,7 @@ static void apiServerZoneDetail(HttpRequest* req, HttpResponse* resp) { if(req->method == "PUT" && !::arg().mustDo("api-readonly")) { // update domain settings - updateDomainSettingsFromDocument(B, di, zonename, req->json(), resp); + updateDomainSettingsFromDocument(B, di, zonename, req->json()); resp->body = ""; resp->status = 204; // No Content, but indicate success -- 2.40.0