1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Fix link-time dependency of ESP8266WebServer on SPIFFS (#862)

This commit is contained in:
Ivan Grokhotkov
2015-11-30 12:20:15 +03:00
parent c10a19e052
commit 9e930e5d34

View File

@ -95,9 +95,9 @@ public:
// look for gz file, only if the original specified path is not a gz. So part only works to send gzip via content encoding when a non compressed is asked for
// if you point the the path to gzip you will serve the gzip as content type "application/x-gzip", not text or javascript etc...
if (!path.endsWith(".gz") && !SPIFFS.exists(path)) {
if (!path.endsWith(".gz") && !_fs.exists(path)) {
String pathWithGz = path + ".gz";
if(SPIFFS.exists(pathWithGz))
if(_fs.exists(pathWithGz))
path += ".gz";
}