1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-09-19 17:51:49 +00:00

Update ESPUI.cpp

Captive Portal memory leak (~2KB) fix
This commit is contained in:
Nikola Kirov 2024-08-31 20:05:40 +03:00 committed by GitHub
parent 356d5b1ffe
commit 25250dd026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1264,7 +1264,6 @@ void ESPUIClass::begin(const char* _title, const char* username, const char* pas
responseText += ("</body></html><head><meta http-equiv=\"Refresh\" content=\"0; URL='http://" + WiFi.softAPIP().toString() + "'\" /></head>"); responseText += ("</body></html><head><meta http-equiv=\"Refresh\" content=\"0; URL='http://" + WiFi.softAPIP().toString() + "'\" /></head>");
response->write(responseText.c_str(), responseText.length()); response->write(responseText.c_str(), responseText.length());
request->send(response); request->send(response);
request->redirect("/");
} }
else else
{ {