missing set for the target path if it's a file. thanks @andig
This commit is contained in:
parent
268c61d8bf
commit
c9d1337fcb
|
@ -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")){
|
||||
|
|
Loading…
Reference in New Issue