mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2026-01-26 08:42:19 +01:00
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