mirror of
https://github.com/esphome/esphome.git
synced 2025-08-09 20:07:50 +00:00
remove cruft
This commit is contained in:
parent
0005aad5b5
commit
7fe8cdaa34
@ -1929,15 +1929,6 @@ void WebServer::handleRequest(AsyncWebServerRequest *request) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_ESP_IDF
|
|
||||||
if (request->url() == "/events") {
|
|
||||||
// Events are not supported on ESP-IDF yet
|
|
||||||
// Return a proper response to avoid "uri handler execution failed" warnings
|
|
||||||
request->send(501, "text/plain", "Server-Sent Events not supported on ESP-IDF");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_WEBSERVER_CSS_INCLUDE
|
#ifdef USE_WEBSERVER_CSS_INCLUDE
|
||||||
if (request->url() == "/0.css") {
|
if (request->url() == "/0.css") {
|
||||||
this->handle_css_request(request);
|
this->handle_css_request(request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user