mirror of
https://github.com/wled/WLED.git
synced 2025-07-14 14:26:33 +00:00
Send empty page if skin.css does not exist
This has the advantage that we do not need to send the 404 error page every time
This commit is contained in:
parent
67ae716c60
commit
b024d93fa0
@ -149,6 +149,12 @@ void initServer()
|
||||
request->send(response);
|
||||
});
|
||||
|
||||
server.on("/skin.css", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||
if (handleFileRead(request, "/skin.css")) return;
|
||||
AsyncWebServerResponse *response = request->beginResponse(200, "text/css");
|
||||
request->send(response);
|
||||
});
|
||||
|
||||
server.on("/favicon.ico", HTTP_GET, [](AsyncWebServerRequest *request){
|
||||
if(!handleFileRead(request, "/favicon.ico"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user