Исправляем работу редактора конфигурации edit на esp32

This commit is contained in:
2022-10-30 21:40:11 +03:00
parent 3cef0bb1d3
commit ce23ab180f

View File

@@ -98,6 +98,7 @@ void standWebServerInit() {
} }
bool handleFileRead(String path) { bool handleFileRead(String path) {
path = "/" + path;
if (path.endsWith("/")) path += "index.html"; if (path.endsWith("/")) path += "index.html";
String contentType = getContentType(path); String contentType = getContentType(path);
String pathWithGz = path + ".gz"; String pathWithGz = path + ".gz";
@@ -211,7 +212,7 @@ void handleFileList() {
entry.close(); entry.close();
} }
output += "]"; output += "]";
Serial.println(output); //Serial.println(output);
HTTP.send(200, "text/json", output); HTTP.send(200, "text/json", output);
} }