File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -844,7 +844,7 @@ void NetWizard::_startHTTP() {
844
844
}
845
845
}).setFilter (this ->_onAPFilter );
846
846
847
- _exit_handler = &_server->on (" /netwizard/exit" , HTTP_GET , [&](AsyncWebServerRequest *request){
847
+ _exit_handler = &_server->on (" /netwizard/exit" , HTTP_POST , [&](AsyncWebServerRequest *request){
848
848
if (_nw.portal .auth .enabled && !request->authenticate (_nw.portal .auth .username .c_str (), _nw.portal .auth .password .c_str ())){
849
849
return request->requestAuthentication ();
850
850
}
@@ -854,8 +854,8 @@ void NetWizard::_startHTTP() {
854
854
}
855
855
856
856
if (!_nw.portal .exit .flag ) {
857
- _nw.portal .exit .flag = true ;
858
857
_nw.portal .exit .millis = millis ();
858
+ _nw.portal .exit .flag = true ;
859
859
}
860
860
return request->send (200 , " text/plain" , " OK" );
861
861
}).setFilter (this ->_onAPFilter );
You can’t perform that action at this time.
0 commit comments