forked from me-no-dev/ESPAsyncWebServer
missing set for the target path if it's a file. thanks @andig
This commit is contained in:
@@ -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")){
|
||||
|
Reference in New Issue
Block a user