From 8072497ef4e7c1da478a573e06925708323c9bfb Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 6 Feb 2022 10:58:12 +0100 Subject: [PATCH] Fix serving files in FolderServeNode. --- web_modules/folder_serve_nodes/folder_serve_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_modules/folder_serve_nodes/folder_serve_node.cpp b/web_modules/folder_serve_nodes/folder_serve_node.cpp index 1be50c0..58e39bc 100644 --- a/web_modules/folder_serve_nodes/folder_serve_node.cpp +++ b/web_modules/folder_serve_nodes/folder_serve_node.cpp @@ -12,7 +12,7 @@ void FolderServeNode::handle_request_main(Request *request) { return; } - String file_name = "/" + request->get_path(); + String file_name = request->get_path(true, false); if (file_cache->wwwroot_has_file(file_name)) { String fp = file_cache->wwwroot;