]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth/rec web: stop sending Server: header
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 2 Aug 2022 07:53:51 +0000 (09:53 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 8 Sep 2022 07:16:46 +0000 (09:16 +0200)
dnsdist does not, either. Avoids leaking VERSION to not authorized users.

(cherry picked from commit 6f16c2e6e14b2f178a08b371207471c9003ea9ff)

backport of #11813

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") {