Fix webserver crash with new filesystem

pull/1226/head
Jm Casler 2022-02-20 02:44:13 -08:00
rodzic 3fdd425634
commit 3d4fc63ecc
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -390,6 +390,9 @@ void handleStatic(HTTPRequest *req, HTTPResponse *res)
res->println("Web server is running.<br><br>The content you are looking for can't be found. Please see: <a "
"href=https://meshtastic.org/docs/getting-started/faq#wifi--web-browser>FAQ</a>.<br><br><a "
"href=/admin>admin</a>");
return;
} else {
res->setHeader("Content-Encoding", "gzip");
}
@ -427,6 +430,7 @@ void handleStatic(HTTPRequest *req, HTTPResponse *res)
return;
} else {
DEBUG_MSG("ERROR: This should not have happened...\n");
res->println("ERROR: This should not have happened...");
}
}