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:
@ -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()
|
||||
|
Reference in New Issue
Block a user