From 2711cb2f1ff91ff61c2e48e9f3f7a5ec3bce71c3 Mon Sep 17 00:00:00 2001 From: rjwats Date: Tue, 28 Jul 2020 08:29:58 +0100 Subject: [PATCH] Fix issue when compiling with PROGMEM_WWW flag omitted (#186) --- lib/framework/ESP8266React.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/framework/ESP8266React.cpp b/lib/framework/ESP8266React.cpp index 59be381..5baed6d 100644 --- a/lib/framework/ESP8266React.cpp +++ b/lib/framework/ESP8266React.cpp @@ -54,11 +54,11 @@ ESP8266React::ESP8266React(AsyncWebServer* server) : }); #else // Serve static resources from /www/ - server->serveStatic("/js/", *fs, "/www/js/"); - server->serveStatic("/css/", *fs, "/www/css/"); - server->serveStatic("/fonts/", *fs, "/www/fonts/"); - server->serveStatic("/app/", *fs, "/www/app/"); - server->serveStatic("/favicon.ico", *fs, "/www/favicon.ico"); + server->serveStatic("/js/", ESPFS, "/www/js/"); + server->serveStatic("/css/", ESPFS, "/www/css/"); + server->serveStatic("/fonts/", ESPFS, "/www/fonts/"); + server->serveStatic("/app/", ESPFS, "/www/app/"); + server->serveStatic("/favicon.ico", ESPFS, "/www/favicon.ico"); // Serving all other get requests with "/www/index.htm" // OPTIONS get a straight up 200 response server->onNotFound([](AsyncWebServerRequest* request) {