]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
make / work too for recuweb
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 17 Feb 2016 16:15:45 +0000 (17:15 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 19 Feb 2016 08:52:02 +0000 (09:52 +0100)
pdns/ws-recursor.cc

index 634841aefc399611404a69a3ba28e95e52daf3be..5b57957627dd15b07ace4c66e8fc2328b2008dcc 100644 (file)
@@ -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;