web_server support for v3 (#6203)

This commit is contained in:
RFDarter
2024-03-20 04:37:18 +01:00
committed by Jesse Hills
parent e27e342927
commit ccca545862
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -358,7 +358,7 @@ void WebServer::handle_index_request(AsyncWebServerRequest *request) {
stream->print(F("</article></body></html>"));
request->send(stream);
}
#elif USE_WEBSERVER_VERSION == 2
#elif USE_WEBSERVER_VERSION >= 2
void WebServer::handle_index_request(AsyncWebServerRequest *request) {
AsyncWebServerResponse *response =
request->beginResponse_P(200, "text/html", ESPHOME_WEBSERVER_INDEX_HTML, ESPHOME_WEBSERVER_INDEX_HTML_SIZE);