mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
Merge branch 'master' into dtostrf_to_printf
This commit is contained in:
@ -110,7 +110,9 @@ 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") && _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";
|
path += "l";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user