From 47b3bb57455229826ae372e32eb3d135fdc0f810 Mon Sep 17 00:00:00 2001 From: drjones Date: Thu, 2 Apr 2026 20:17:45 -0700 Subject: [PATCH] Fix web UI: sendContent length-aware overload, no heap String alloc Made-with: Cursor --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index eb413a0..96945f9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2250,7 +2250,7 @@ static void handleRoot() { } server.setContentLength(sizeof(kHtml) - 1); server.send(200, "text/html; charset=utf-8", ""); - server.sendContent(kHtml); + server.sendContent(kHtml, sizeof(kHtml) - 1); } static void handleLog() {