fix: restoring cfg.json #2847
This commit is contained in:
parent
3d502a41c5
commit
21de073784
@ -52,7 +52,7 @@ void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t
|
|||||||
}
|
}
|
||||||
if (final) {
|
if (final) {
|
||||||
request->_tempFile.close();
|
request->_tempFile.close();
|
||||||
if (filename == "/cfg.json") {
|
if (filename == "/cfg.json" || filename == "cfg.json") {
|
||||||
doReboot = true;
|
doReboot = true;
|
||||||
request->send(200, "text/plain", F("Configuration restore successful.\nRebooting..."));
|
request->send(200, "text/plain", F("Configuration restore successful.\nRebooting..."));
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user