WebServer: use /htdocs as root directory

This commit is contained in:
Thomas Kolb 2019-11-26 21:11:36 +01:00
parent 1337a7e231
commit 8a1a17bb07
2 changed files with 1 additions and 1 deletions

View file

@ -35,7 +35,7 @@ void WebServer::serveFile(String filename, httpsserver::HTTPResponse *res)
void WebServer::handleRoot(httpsserver::HTTPRequest *req, httpsserver::HTTPResponse *res) void WebServer::handleRoot(httpsserver::HTTPRequest *req, httpsserver::HTTPResponse *res)
{ {
serveFile("/index.html", res); serveFile("/htdocs/index.html", res);
res->setHeader("Content-Type", "text/html"); res->setHeader("Content-Type", "text/html");
} }