1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

missed one

This commit is contained in:
J. Nick Koston
2025-09-05 08:42:46 -05:00
parent a8352ef2cb
commit 3f622169b9

View File

@@ -100,7 +100,7 @@ void CaptivePortal::handleRequest(AsyncWebServerRequest *req) {
#ifndef USE_ESP8266
auto *response = req->beginResponse(200, F("text/html"), INDEX_GZ, sizeof(INDEX_GZ));
#else
auto *response = req->beginResponse_P(200, "text/html", INDEX_GZ, sizeof(INDEX_GZ));
auto *response = req->beginResponse_P(200, F("text/html"), INDEX_GZ, sizeof(INDEX_GZ));
#endif
response->addHeader(F("Content-Encoding"), F("gzip"));
req->send(response);