Update file.cpp
small optimization, based on upstream 0593a078c6 by willmmiles
This commit is contained in:
@@ -512,8 +512,8 @@ bool handleFileRead(AsyncWebServerRequest* request, String path){
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(WLED_FS.exists(path)) {
|
if(WLED_FS.exists(path) || WLED_FS.exists(path + ".gz")) {
|
||||||
request->send(WLED_FS, path, contentType);
|
request->send(WLED_FS, path, String(), request->hasArg(F("download")));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//USER_PRINTLN("WS FileRead failed: " + path + " (" + contentType + ")");
|
//USER_PRINTLN("WS FileRead failed: " + path + " (" + contentType + ")");
|
||||||
|
|||||||
Reference in New Issue
Block a user