diff --git a/main/http_server/http_server.c b/main/http_server/http_server.c index 78a7e62..fe5910e 100644 --- a/main/http_server/http_server.c +++ b/main/http_server/http_server.c @@ -323,7 +323,7 @@ static esp_err_t POST_restart(httpd_req_t * req) // Set CORS headers if (set_cors_headers(req) != ESP_OK) { httpd_resp_send_500(req); - return ESP_FAIL; + return ESP_OK; } ESP_LOGI(TAG, "Restarting System because of API Request");