From b7049ed8ee746fccf8c2c4826a9be199a71fbfd6 Mon Sep 17 00:00:00 2001 From: Jacques Date: Wed, 2 Mar 2016 21:24:42 +0000 Subject: [PATCH] Update ESP8266HTTPUpdateServer.cpp Redirect browser back to the update page after 15 seconds. --- .../ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp b/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp index fa7b7ac35..ada6c0241 100644 --- a/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp +++ b/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp @@ -34,7 +34,7 @@ void ESP8266HTTPUpdateServer::setup(ESP8266WebServer *server) _server->on("/update", HTTP_POST, [&](){ _server->sendHeader("Connection", "close"); _server->sendHeader("Access-Control-Allow-Origin", "*"); - _server->send(200, "text/plain", (Update.hasError())?"FAIL":"OK"); + _server->send(200, "text/html", (Update.hasError())?"FAIL":"OK"); ESP.restart(); },[&](){ // handler for the file upload, get's the sketch bytes, and writes