From: bert hubert Date: Wed, 17 Feb 2016 16:15:45 +0000 (+0100) Subject: make / work too for recuweb X-Git-Tag: auth-4.0.0-alpha2~36^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d887229a6ecabac3bc87d71b24c151dd862e989a;p=thirdparty%2Fpdns.git make / work too for recuweb --- diff --git a/pdns/ws-recursor.cc b/pdns/ws-recursor.cc index 634841aefc..5b57957627 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;