mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 21:32:52 +01:00
fix: Set CORS headers should return ESP_OK
This commit is contained in:
parent
b7eee35ce4
commit
2046719d2c
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user