Skip to content

Commit

Permalink
fix aspect (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Apr 10, 2024
1 parent 51494a2 commit 21f018b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/cinatra/coro_http_router.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 21f018b

Please sign in to comment.