1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 16:12:24 +01:00

fix refactoring error

This commit is contained in:
J. Nick Koston
2025-09-05 08:27:39 -05:00
parent 089430abc9
commit 6ff31bdbbf

View File

@@ -18,7 +18,7 @@ void CaptivePortal::handle_config(AsyncWebServerRequest *request) {
stream->print(get_mac_address_pretty().c_str()); stream->print(get_mac_address_pretty().c_str());
stream->print(F("\",\"name\":\"")); stream->print(F("\",\"name\":\""));
stream->print(App.get_name().c_str()); stream->print(App.get_name().c_str());
stream->print(F("\",\"aps\":[")); stream->print(F("\",\"aps\":[{}"));
#else #else
AsyncResponseStream *stream = request->beginResponseStream(F("application/json")); AsyncResponseStream *stream = request->beginResponseStream(F("application/json"));
stream->addHeader(F("cache-control"), F("public, max-age=0, must-revalidate")); stream->addHeader(F("cache-control"), F("public, max-age=0, must-revalidate"));