mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
Исправляем работу редактора конфигурации edit на esp32
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user