🐛 fixed bugged http response for Close()

This commit is contained in:
EntireTwix 2021-04-04 22:01:20 -07:00
parent 53b3c2c3ac
commit c32e70c3a5

View file

@ -40,18 +40,14 @@ public:
auto resp = HttpResponse::newHttpResponse();
if (attempt == bank.admin_pass)
{
resp->setBody("<p><span style=" color
: #339966;
"><strong>[Webserver Closed]</strong></span></p>");
resp->setBody("<p><span style=\" color : #339966;\"><strong>[Webserver Closed]</strong></span></p>");
bank.Save();
callback(resp);
app().quit();
}
else
{
resp->setBody("<p><span style=" color
: #ff0000;
"><strong>[Invalid Password]</strong></span></p>");
resp->setBody("<p><span style=\" color: #ff0000;\"><strong>[Invalid Password]</strong></span></p>");
callback(resp);
}
}