]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth/rec web: stop sending Server: header 11813/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:53:51 +0000 (09:53 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:53:51 +0000 (09:53 +0200)
dnsdist does not, either. Avoids leaking VERSION to not authorized users.

pdns/webserver.cc

index 78039890106cbf226b75b406215ca2504f5b1fe9..09372bb0a71a617169831890535a174bf84afcb8 100644 (file)
@@ -342,7 +342,6 @@ void WebServer::handleRequest(HttpRequest& req, HttpResponse& resp) const
   }
 
   // always set these headers
-  resp.headers["Server"] = "PowerDNS/" VERSION;
   resp.headers["Connection"] = "close";
 
   if (req.method == "HEAD") {