Fix web UI: sendContent length-aware overload, no heap String alloc

Made-with: Cursor
This commit is contained in:
drjones
2026-04-02 20:17:45 -07:00
parent fdc1bc28a9
commit 47b3bb5745

View File

@@ -2250,7 +2250,7 @@ static void handleRoot() {
} }
server.setContentLength(sizeof(kHtml) - 1); server.setContentLength(sizeof(kHtml) - 1);
server.send(200, "text/html; charset=utf-8", ""); server.send(200, "text/html; charset=utf-8", "");
server.sendContent(kHtml); server.sendContent(kHtml, sizeof(kHtml) - 1);
} }
static void handleLog() { static void handleLog() {