From a6e9700a836463f4153f65c9c16a5c297be7f4f3 Mon Sep 17 00:00:00 2001 From: Laura Date: Wed, 20 Dec 2023 22:54:38 +0100 Subject: [PATCH] Fix syntax error --- examples/server/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 5b9499c00..fbc84e79d 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -2748,7 +2748,7 @@ int main(int argc, char **argv) return false; }); - svr.Get("/props", [&llama](const httplib::Request & /*req*/, httplib::Response &res) + svr.Get("/props", [&llama](const httplib::Request & req, httplib::Response &res) { res.set_header("Access-Control-Allow-Origin", req.get_header_value("Origin")); json data = { @@ -2828,7 +2828,7 @@ int main(int argc, char **argv) } }); - svr.Get("/v1/models", [¶ms](const httplib::Request&, httplib::Response& res) + svr.Get("/v1/models", [¶ms](const httplib::Request& req, httplib::Response& res) { res.set_header("Access-Control-Allow-Origin", req.get_header_value("Origin")); std::time_t t = std::time(0);