mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-04-12 03:38:30 +00:00
Fixed SSL server problem with bad key.pem and cert.pem
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user