From ce23ab180fe0baacdcb84cb34c10c3d5817f421d Mon Sep 17 00:00:00 2001 From: biver Date: Sun, 30 Oct 2022 21:40:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D1=8F=D0=B5=D0=BC=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=83=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20edit=20=D0=BD=D0=B0=20esp32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/StandWebServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/StandWebServer.cpp b/src/StandWebServer.cpp index 3a465a7e..6d1e5d58 100644 --- a/src/StandWebServer.cpp +++ b/src/StandWebServer.cpp @@ -98,6 +98,7 @@ void standWebServerInit() { } bool handleFileRead(String path) { + path = "/" + path; if (path.endsWith("/")) path += "index.html"; String contentType = getContentType(path); String pathWithGz = path + ".gz"; @@ -211,7 +212,7 @@ void handleFileList() { entry.close(); } output += "]"; - Serial.println(output); + //Serial.println(output); HTTP.send(200, "text/json", output); }