From: Christian Hofstaedtler Date: Fri, 25 Jul 2014 13:44:45 +0000 (+0200) Subject: web: Add missing statuscode on css and jsonstat X-Git-Tag: auth-3.4.0-rc1~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c146576d28ce1c2212879153c75204912f3d23af;p=thirdparty%2Fpdns.git web: Add missing statuscode on css and jsonstat --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 7738dd8815..43df5b77ff 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -1161,6 +1161,7 @@ void AuthWebServer::jsonstat(HttpRequest* req, HttpResponse* resp) object["number"]=lexical_cast(number); //cerr<<"Flushed cache for '"<body = returnJsonObject(object); + resp->status = 200; return; } else if(command == "pdns-control") { @@ -1179,6 +1180,7 @@ void AuthWebServer::jsonstat(HttpRequest* req, HttpResponse* resp) map m; if(ptr) { + resp->status = 200; m["result"] = (*ptr)(parameters, 0); } else { resp->status = 404; @@ -1232,6 +1234,7 @@ void AuthWebServer::cssfunction(HttpRequest* req, HttpResponse* resp) ret<<".resetring:hover i { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAA2ElEQVQY013PMUoDcRDF4c+kEzxCsNNCrBQvIGhnlcYm11EkBxAraw8gglgIoiJpAoKIYlBcgrgopsma3c3fwt1k9cHA480M8xvQp/nMjorOWY5ov7IAYlpjQk7aYxcuWBpwFQgJnUcaYk7GhEDIGL5w+MVpKLIRyR2b4JOjvGhUKzHTv2W7iuSN479Dvu9plf1awbQ6y3x1sU5tjpVJcMbakF6Ycoas8Dl5xEHJ160wRdfqzXfa6XQ4PLDlicWUjxHxZfndL/N+RhiwNzl/Q6PDhn/qsl76H7prcApk2B1aAAAAAElFTkSuQmCC);}"<body = ret.str(); + resp->status = 200; } void AuthWebServer::webThread()