Fixed SSL server problem with bad key.pem and cert.pem
This commit is contained in:
parent
95b22a980a
commit
a83dcefe86
2 changed files with 41 additions and 1 deletions
|
@ -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");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue