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