mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-16 10:49:36 +00:00
Correct the example in README.
This commit is contained in:
1 parent
969744bfeb
commit
5cb05258ee
1 file changed
+2
-2
@@ -25,8 +25,8 @@ int main(void)
|
||||
res.set_content("Hello World!", "text/plain");
|
||||
});
|
||||
|
||||
svr_.get(R"(/numbers/(\d+))", [&](const auto& req, auto& res) {
|
||||
string numbers = req.matches[1];
|
||||
svr.get(R"(/numbers/(\d+))", [&](const auto& req, auto& res) {
|
||||
auto numbers = req.matches[1];
|
||||
res.set_content(numbers, "text/plain");
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user