]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/ws-api.cc
Webserver: convert to new yahttp api and router
[thirdparty/pdns.git] / pdns / ws-api.cc
index 98d63c8672c188a9ee6c3afcc7090dd0c6b0aee3..44af01b383584b53ddbf2434359d91e5af9b47a3 100644 (file)
@@ -188,7 +188,7 @@ void apiServerSearchLog(HttpRequest* req, HttpResponse* resp) {
     throw HttpMethodNotAllowedException();
 
   string prefix = " " + s_programname + "[";
-  resp->body = logGrep(req->parameters["q"], ::arg()["experimental-logfile"], prefix);
+  resp->body = logGrep(req->getvars["q"], ::arg()["experimental-logfile"], prefix);
 }
 
 void apiServerStatistics(HttpRequest* req, HttpResponse* resp) {