mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Make the output more curl
friendly
This commit is contained in:
parent
2d7671f008
commit
db3776853e
@ -165,7 +165,7 @@ int add_http_routes(WebServer *server, const char *path) {
|
||||
|
||||
// Handling uploading firmware file
|
||||
server->on(path, HTTP_POST, [server]() {
|
||||
server->send(200, "text/plain", (Update.hasError()) ? "Update: fail" : "Update: OK!");
|
||||
server->send(200, "text/plain", (Update.hasError()) ? "Update: fail\n" : "Update: OK!\n");
|
||||
delay(500);
|
||||
ESP.restart();
|
||||
}, [server]() {
|
||||
|
Loading…
Reference in New Issue
Block a user