From 9e930e5d34f49734dc5c7b5de702283b70def4d7 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 30 Nov 2015 12:20:15 +0300 Subject: [PATCH] Fix link-time dependency of ESP8266WebServer on SPIFFS (#862) --- libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h b/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h index 5e455d64c..b808607e5 100644 --- a/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h +++ b/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h @@ -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"; }