Fix webserver crash with new filesystem
This commit is contained in:
@@ -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 "
|
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=https://meshtastic.org/docs/getting-started/faq#wifi--web-browser>FAQ</a>.<br><br><a "
|
||||||
"href=/admin>admin</a>");
|
"href=/admin>admin</a>");
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
res->setHeader("Content-Encoding", "gzip");
|
res->setHeader("Content-Encoding", "gzip");
|
||||||
}
|
}
|
||||||
@@ -427,6 +430,7 @@ void handleStatic(HTTPRequest *req, HTTPResponse *res)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
DEBUG_MSG("ERROR: This should not have happened...\n");
|
||||||
res->println("ERROR: This should not have happened...");
|
res->println("ERROR: This should not have happened...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user