mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
Fixed a build error with example/redirect.cc
This commit is contained in:
parent
e8799383f3
commit
3291bdad91
@ -29,8 +29,6 @@ int main(void) {
|
|||||||
|
|
||||||
// HTTPS server
|
// HTTPS server
|
||||||
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
|
||||||
SSLServer https(SERVER_CERT_FILE, SERVER_PRIVATE_KEY_FILE);
|
|
||||||
|
|
||||||
https.Get("/", [=](const Request & /*req*/, Response &res) {
|
https.Get("/", [=](const Request & /*req*/, Response &res) {
|
||||||
res.set_redirect("/hi");
|
res.set_redirect("/hi");
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user