1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Example WebServer WebServer.ino does not redirect when index.htm does not exist (#9142)

This commit is contained in:
Matthias Hertel
2024-06-15 20:32:27 +02:00
committed by GitHub
parent 9afeaf5694
commit 754324e56e
2 changed files with 6 additions and 8 deletions

View File

@ -41,7 +41,7 @@ void handleRedirect() {
TRACE("Redirect...");
String url = "/index.htm";
if (!LittleFS.exists(url)) { url = "/$update.htm"; }
if (!LittleFS.exists(url)) { url = "/$upload.htm"; }
server.redirect(url);
} // handleRedirect()