kopia lustrzana https://github.com/Aircoookie/WLED
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 timepull/3590/head
rodzic
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"))
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue