From 3d4fc63ecc8aa7e521061c2e505c0071f568e791 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sun, 20 Feb 2022 02:44:13 -0800 Subject: [PATCH] Fix webserver crash with new filesystem --- src/mesh/http/ContentHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesh/http/ContentHandler.cpp b/src/mesh/http/ContentHandler.cpp index b64ea2814..4eb6cb7e5 100644 --- a/src/mesh/http/ContentHandler.cpp +++ b/src/mesh/http/ContentHandler.cpp @@ -390,6 +390,9 @@ void handleStatic(HTTPRequest *req, HTTPResponse *res) res->println("Web server is running.

The content you are looking for can't be found. Please see: FAQ.

admin"); + + 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..."); } }