Remove Update from URL #300

This commit is contained in:
fvanroie 2022-02-15 06:34:19 +01:00
parent d8c037bcdb
commit 1acbd6439b

View File

@ -2053,6 +2053,7 @@ static void webHandleFirmware()
httpMessage += F("<button type='submit' name='save' value='debug'>" D_HTTP_UPDATE_FIRMWARE "</button>"); httpMessage += F("<button type='submit' name='save' value='debug'>" D_HTTP_UPDATE_FIRMWARE "</button>");
httpMessage += F("</form></div>"); httpMessage += F("</form></div>");
/* Update from URL
// Form // Form
httpMessage += F("<div class='container'><form method='POST' action='/espfirmware'>"); httpMessage += F("<div class='container'><form method='POST' action='/espfirmware'>");
@ -2064,6 +2065,7 @@ static void webHandleFirmware()
// Submit & End Form // Submit & End Form
httpMessage += F("<button type='submit' name='save' value='debug'>Update from URL</button>"); httpMessage += F("<button type='submit' name='save' value='debug'>Update from URL</button>");
httpMessage += F("</form></div>"); httpMessage += F("</form></div>");
*/
httpMessage += FPSTR(MAIN_MENU_BUTTON); httpMessage += FPSTR(MAIN_MENU_BUTTON);
@ -2384,7 +2386,7 @@ void httpSetup()
LOG_VERBOSE(TAG_HTTP, F("Total size: %s"), webServer.hostHeader().c_str()); LOG_VERBOSE(TAG_HTTP, F("Total size: %s"), webServer.hostHeader().c_str());
}, },
webHandleFirmwareUpload); webHandleFirmwareUpload);
webServer.on(F("/espfirmware"), httpHandleEspFirmware); // webServer.on(F("/espfirmware"), httpHandleEspFirmware);
#endif #endif
LOG_INFO(TAG_HTTP, F(D_SERVICE_STARTED)); LOG_INFO(TAG_HTTP, F(D_SERVICE_STARTED));