Fixed SSL server problem with bad key.pem and cert.pem

This commit is contained in:
yhirose 2017-12-17 22:23:05 -05:00
parent 95b22a980a
commit a83dcefe86
2 changed files with 41 additions and 1 deletions

View file

@ -73,6 +73,11 @@ int main(void)
Server svr;
#endif
if (!svr.is_valid()) {
printf("server has an error...\n");
return -1;
}
svr.get("/", [=](const auto& /*req*/, auto& res) {
res.set_redirect("/hi");
});