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:
parent
dd73a1885e
commit
9f2cfb8218
@ -101,6 +101,10 @@ public:
|
|||||||
|
|
||||||
// Append whatever follows this URI in request to get the file path.
|
// Append whatever follows this URI in request to get the file path.
|
||||||
path += requestUri.substring(_baseUriLength);
|
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);
|
DEBUGV("StaticRequestHandler::handle: path=%s, isFile=%d\r\n", path.c_str(), _isFile);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user