From 6f16c2e6e14b2f178a08b371207471c9003ea9ff Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 09:53:51 +0200 Subject: [PATCH] auth/rec web: stop sending Server: header dnsdist does not, either. Avoids leaking VERSION to not authorized users. --- pdns/webserver.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/pdns/webserver.cc b/pdns/webserver.cc index 7803989010..09372bb0a7 100644 --- a/pdns/webserver.cc +++ b/pdns/webserver.cc @@ -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") { -- 2.47.2