missing set for the target path if it's a file. thanks @andig

This commit is contained in:
Me No Dev 2016-01-21 19:52:06 +02:00
parent 268c61d8bf
commit c9d1337fcb
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ void AsyncStaticWebHandler::handleRequest(AsyncWebServerRequest *request){
}
if(path.endsWith("/"))
path += "index.htm";
} else {
path = _path;
}
if(_fs.exists(path) || _fs.exists(path+".gz")){