Skip to content

Commit 40f919e

Browse files
committed
Merge pull request esp8266#1712 from jacquesbotha/patch-1
Update ESP8266HTTPUpdateServer.cpp
2 parents 46bd4fc + b7049ed commit 40f919e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void ESP8266HTTPUpdateServer::setup(ESP8266WebServer *server)
3434
_server->on("/update", HTTP_POST, [&](){
3535
_server->sendHeader("Connection", "close");
3636
_server->sendHeader("Access-Control-Allow-Origin", "*");
37-
_server->send(200, "text/plain", (Update.hasError())?"FAIL":"OK");
37+
_server->send(200, "text/html", (Update.hasError())?"FAIL":"<META http-equiv=\"refresh\" content=\"15;URL=/update\">OK");
3838
ESP.restart();
3939
},[&](){
4040
// handler for the file upload, get's the sketch bytes, and writes

0 commit comments

Comments
 (0)