diff --git a/src/WebHandlers.cpp b/src/WebHandlers.cpp index 1f435e68a..29047e512 100644 --- a/src/WebHandlers.cpp +++ b/src/WebHandlers.cpp @@ -120,6 +120,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest *request) if (_default_file.length() == 0) return false; + path = _path; // Try to add default file, ensure there is a trailing '/' ot the path. if (path.length() == 0 || path[path.length()-1] != '/') path += "/";