Fixed warnings on Visual C++

This commit is contained in:
yhirose 2020-12-31 11:35:11 -05:00
parent 60c2213893
commit a9f5f8683f
2 changed files with 3 additions and 4 deletions

View file

@ -3148,9 +3148,9 @@ TEST(MountTest, Unmount) {
TEST(ExceptionTest, ThrowExceptionInHandler) {
Server svr;
svr.Get("/hi", [&](const Request & /*req*/, Response &res) {
svr.Get("/hi", [&](const Request & /*req*/, Response & /*res*/) {
throw std::runtime_error("exception...");
res.set_content("Hello World!", "text/plain");
//res.set_content("Hello World!", "text/plain");
});
auto listen_thread = std::thread([&svr]() { svr.listen("localhost", PORT); });