From b2646a8489015af7dee602ae44180e96bf47bfbb Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:11:12 +0200 Subject: [PATCH] Update file.cpp small optimization, based on upstream https://github.com/Aircoookie/WLED/commit/0593a078c6560ad0507ac3673fa749e85815c18b by willmmiles --- wled00/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/file.cpp b/wled00/file.cpp index 5affc666..4e23d5ca 100644 --- a/wled00/file.cpp +++ b/wled00/file.cpp @@ -512,8 +512,8 @@ bool handleFileRead(AsyncWebServerRequest* request, String path){ } #endif - if(WLED_FS.exists(path)) { - request->send(WLED_FS, path, contentType); + if(WLED_FS.exists(path) || WLED_FS.exists(path + ".gz")) { + request->send(WLED_FS, path, String(), request->hasArg(F("download"))); return true; } //USER_PRINTLN("WS FileRead failed: " + path + " (" + contentType + ")");