From d887229a6ecabac3bc87d71b24c151dd862e989a Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 17 Feb 2016 17:15:45 +0100 Subject: [PATCH] make / work too for recuweb --- pdns/ws-recursor.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 634841aef..5b5795762 100644 --- a/pdns/ws-recursor.cc +++ b/pdns/ws-recursor.cc @@ -382,6 +382,9 @@ void serveStuff(HttpRequest* req, HttpResponse* resp) { resp->headers["Cache-Control"] = "max-age=86400"; + if(req->url.path == "/") + req->url.path = "/index.html"; + const string charset = "; charset=utf-8"; if(boost::ends_with(req->url.path, ".html")) resp->headers["Content-Type"] = "text/html" + charset; -- 2.40.0