File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ void AsyncFsWebServer::onUpdate() {
505505 on (" /update" , HTTP_POST, [](AsyncWebServerRequest *request){
506506 // the request handler is triggered after the upload has finished...
507507 // create the response, add header, and send response
508- String txt = Update.hasError () ? Update.errorString () : " Update Success. Restart ESP to load new firmware!\n " ;
508+ String txt = Update.hasError () ? Update.getErrorString () : " Update Success. Restart ESP to load new firmware!\n " ;
509509 AsyncWebServerResponse *response = request->beginResponse ((Update.hasError ()) ? 500 : 200 , " text/plain" , txt);
510510 response->addHeader (" Connection" , " close" );
511511 response->addHeader (" Access-Control-Allow-Origin" , " *" );
You can’t perform that action at this time.
0 commit comments