mirror of
https://github.com/wled/WLED.git
synced 2025-07-16 07:16:31 +00:00
handleFileRead: Skip duplicate FS check
Since we validate the file existence ourselves, no need to have AsyncWebServer do it again.
This commit is contained in:
parent
72455ccde1
commit
d4268ba070
@ -433,7 +433,7 @@ bool handleFileRead(AsyncWebServerRequest* request, String path){
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(WLED_FS.exists(path) || WLED_FS.exists(path + ".gz")) {
|
if(WLED_FS.exists(path) || WLED_FS.exists(path + ".gz")) {
|
||||||
request->send(WLED_FS, path, String(), request->hasArg(F("download")));
|
request->send(request->beginResponse(WLED_FS, path, {}, request->hasArg(F("download")), {}));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user