From f8cc171e4a38ede7863ac44299f74c20c61f6f40 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Wed, 24 Apr 2024 22:15:25 +0200 Subject: [PATCH] Fix: Return 404 (and nothing else) if file not found --- src/WebApi_config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WebApi_config.cpp b/src/WebApi_config.cpp index a67be42fa..759b6b243 100644 --- a/src/WebApi_config.cpp +++ b/src/WebApi_config.cpp @@ -40,6 +40,7 @@ void WebApiConfigClass::onConfigGet(AsyncWebServerRequest* request) requestFile = name; } else { request->send(404); + return; } }