You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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
96
-
// if you point the the path to gzip you will serve the gzip as content type "application/x-gzip", not text or javascript etc...
97
-
if (!path.endsWith(".gz") && !SPIFFS.exists(path)) {
97
+
// 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
99
String pathWithGz = path + ".gz";
99
100
if(SPIFFS.exists(pathWithGz))
100
101
path += ".gz";
@@ -104,9 +105,9 @@ class StaticRequestHandler : public RequestHandler {
0 commit comments