From 9395aeb397b782233906e316c6e5d241c072fd22 Mon Sep 17 00:00:00 2001 From: jethomson Date: Sat, 13 May 2023 20:18:36 -0400 Subject: [PATCH] Fix bug where _default_file is appended to full path with filename instead of directory." --- src/WebHandlers.cpp | 1 + 1 file changed, 1 insertion(+) 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 += "/";