From d339f682a3178b383458a839e9491fd757270495 Mon Sep 17 00:00:00 2001 From: steff393 Date: Sun, 20 Feb 2022 20:03:25 +0100 Subject: [PATCH] Serve web.html instead of old web interface - fix --- data/index.html | 1 - src/webServer.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/index.html b/data/index.html index af031f2..d1ce750 100644 --- a/data/index.html +++ b/data/index.html @@ -12,7 +12,6 @@

wbec

-

Connection %STATE%

diff --git a/src/webServer.cpp b/src/webServer.cpp index 88a5583..4f2548f 100644 --- a/src/webServer.cpp +++ b/src/webServer.cpp @@ -96,7 +96,7 @@ void webServer_setup() { }); server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { - request->send(LittleFS, F("/web.html"), String(), false, processor); + request->send(LittleFS, F("/web.html"), F("text/html")); }); server.on("/cfg", HTTP_GET, [](AsyncWebServerRequest *request){