diff --git a/include/cinatra/coro_http_router.hpp b/include/cinatra/coro_http_router.hpp index 73ede525..287016fa 100644 --- a/include/cinatra/coro_http_router.hpp +++ b/include/cinatra/coro_http_router.hpp @@ -65,9 +65,8 @@ class coro_http_router { (do_before(asps, req, resp, ok), ...); if (ok) { co_await handler(req, resp); - - (do_after(asps, req, resp, ok), ...); } + (do_after(asps, req, resp, ok), ...); }; } else { @@ -113,8 +112,8 @@ class coro_http_router { (do_before(asps, req, resp, ok), ...); if (ok) { handler(req, resp); - (do_after(asps, req, resp, ok), ...); } + (do_after(asps, req, resp, ok), ...); }; } else {