From 21de073784c5a80a94a033f9278fef7df5cadf44 Mon Sep 17 00:00:00 2001 From: ahadcove Date: Mon, 24 Oct 2022 11:13:33 -0400 Subject: [PATCH] fix: restoring cfg.json #2847 --- wled00/wled_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/wled_server.cpp b/wled00/wled_server.cpp index 6e779228..4c235cf3 100644 --- a/wled00/wled_server.cpp +++ b/wled00/wled_server.cpp @@ -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