mirror of
https://github.com/esphome/esphome.git
synced 2025-08-09 11:57:46 +00:00
cleanup
This commit is contained in:
parent
ffe39473d0
commit
d8d02f71ba
@ -174,8 +174,7 @@ void OTARequestHandler::handleRequest(AsyncWebServerRequest *request) {
|
|||||||
#endif // USE_ARDUINO
|
#endif // USE_ARDUINO
|
||||||
#ifdef USE_ESP_IDF
|
#ifdef USE_ESP_IDF
|
||||||
// Send response based on the OTA result
|
// Send response based on the OTA result
|
||||||
request->send(200, "text/plain", this->ota_success_ ? "Update Successful!" : "Update Failed!");
|
response = request->beginResponse(200, "text/plain", this->ota_success_ ? "Update Successful!" : "Update Failed!");
|
||||||
return;
|
|
||||||
#endif // USE_ESP_IDF
|
#endif // USE_ESP_IDF
|
||||||
response->addHeader("Connection", "close");
|
response->addHeader("Connection", "close");
|
||||||
request->send(response);
|
request->send(response);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user