mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
Merge branch 'master' into dtostrf_to_printf
This commit is contained in:
commit
0c1b6f9f96
@ -110,7 +110,9 @@ public:
|
||||
// Append whatever follows this URI in request to get the file path.
|
||||
path += requestUri.substring(_baseUriLength);
|
||||
|
||||
if (!_fs.exists(path) && path.endsWith(".htm") && _fs.exists(path + "l")) {
|
||||
// If neither <blah> nor <blah>.gz exist, and <blah> is a file.htm, try it with file.html instead
|
||||
// For the normal case this will give a search order of index.htm, index.htm.gz, index.html, index.html.gz
|
||||
if (!_fs.exists(path) && !_fs.exists(path + ".gz") && path.endsWith(".htm")) {
|
||||
path += "l";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user