fix: restoring cfg.json #2847

pull/2850/head
ahadcove 2022-10-24 11:13:33 -04:00
rodzic 3d502a41c5
commit 21de073784
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -52,7 +52,7 @@ void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t
}
if (final) {
request->_tempFile.close();
if (filename == "/cfg.json") {
if (filename == "/cfg.json" || filename == "cfg.json") {
doReboot = true;
request->send(200, "text/plain", F("Configuration restore successful.\nRebooting..."));
} else