Fixed variable capture problem.

This commit is contained in:
yhirose committed 2012-09-25 22:55:51 -04:00
1 parent bad43c66d7
commit ace3bb6caf
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -416,7 +416,7 @@ inline void Server::process_request(FILE* fp_read, FILE* fp_write)
svr->run(), svr.reset())
#define GET(url, body) \
svr->get(url, [](httpsvrkit::Context& cxt) { \
svr->get(url, [&](httpsvrkit::Context& cxt) { \
const auto& req = cxt.request; \
auto& res = cxt.response; \
body \