mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Merge branch 'idf_webserver_ota' into integration
This commit is contained in:
		| @@ -174,8 +174,7 @@ void OTARequestHandler::handleRequest(AsyncWebServerRequest *request) { | ||||
| #endif  // USE_ARDUINO | ||||
| #ifdef USE_ESP_IDF | ||||
|   // Send response based on the OTA result | ||||
|   request->send(200, "text/plain", this->ota_success_ ? "Update Successful!" : "Update Failed!"); | ||||
|   return; | ||||
|   response = request->beginResponse(200, "text/plain", this->ota_success_ ? "Update Successful!" : "Update Failed!"); | ||||
| #endif  // USE_ESP_IDF | ||||
|   response->addHeader("Connection", "close"); | ||||
|   request->send(response); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user