Fix C++ lib sample

This commit is contained in:
Tatsuhiro Tsujikawa 2014-11-08 16:52:03 +09:00
parent c31be5af4d
commit 7f60e8a307
1 changed files with 2 additions and 1 deletions

View File

@ -1003,7 +1003,8 @@ HTTP/2 server looks like this:
server.listen
("*", 3000,
[](std::shared_ptr<request> req, std::shared_ptr<response> res)
[](const std::shared_ptr<request>& req,
const std::shared_ptr<response>& res)
{
res->write_head(200);
res->end("hello, world");