Fixed warnings on Visual C++

This commit is contained in:
yhirose committed 2020-12-31 11:35:11 -05:00
1 parent 60c2213893
commit a9f5f8683f
2 files changed
+3 -4

No files matched your search

+2 -2
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); });