mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-15 19:13:39 +00:00
Fixed SSL server problem with bad key.pem and cert.pem
This commit is contained in:
1 parent
95b22a980a
commit
a83dcefe86
2 files changed
+41
-1
No files matched your search
@@ -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