Skip to content

Commit 9e930e5

Browse files
committed
Fix link-time dependency of ESP8266WebServer on SPIFFS (#862)
1 parent c10a19e commit 9e930e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ class StaticRequestHandler : public RequestHandler {
9595

9696
// 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
9797
// if you point the the path to gzip you will serve the gzip as content type "application/x-gzip", not text or javascript etc...
98-
if (!path.endsWith(".gz") && !SPIFFS.exists(path)) {
98+
if (!path.endsWith(".gz") && !_fs.exists(path)) {
9999
String pathWithGz = path + ".gz";
100-
if(SPIFFS.exists(pathWithGz))
100+
if(_fs.exists(pathWithGz))
101101
path += ".gz";
102102
}
103103

0 commit comments

Comments
 (0)