Skip to content

Commit

Permalink
Merge pull request #3590 from WoodyLetsCode/style
Browse files Browse the repository at this point in the history
Send empty page if skin.css does not exist
  • Loading branch information
blazoncek authored Dec 16, 2023
2 parents 37c9fd2 + b024d93 commit 7d52cc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wled00/wled_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,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"))
{
Expand Down

0 comments on commit 7d52cc4

Please sign in to comment.