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

fallback onto index.html if index.htm fails (#2614)

This commit is contained in:
George Talusan 2019-10-29 19:25:03 -04:00 committed by Develo
parent dd73a1885e
commit 9f2cfb8218

View File

@ -101,6 +101,10 @@ public:
// Append whatever follows this URI in request to get the file path.
path += requestUri.substring(_baseUriLength);
if (!_fs.exists(path) && path.endsWith(".htm")) {
path += "l";
}
}
DEBUGV("StaticRequestHandler::handle: path=%s, isFile=%d\r\n", path.c_str(), _isFile);