Skip to content

Commit

Permalink
Add missed header (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Jan 26, 2024
1 parent c9bec30 commit 8ec8b18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cinatra/coro_http_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class coro_http_connection

if (is_coro_exist) {
if (coro_handler) {
co_await (coro_handler)(request_, response_);
co_await coro_handler(request_, response_);
}
else {
response_.set_status(status_type::not_found);
Expand All @@ -238,7 +238,7 @@ class coro_http_connection
std::get<0>(pair))) {
auto coro_handler = std::get<1>(pair);
if (coro_handler) {
co_await (coro_handler)(request_, response_);
co_await coro_handler(request_, response_);
is_matched_regex_router = true;
}
}
Expand Down
2 changes: 2 additions & 0 deletions include/cinatra/session_manager.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#pragma once

#include <asio/steady_timer.hpp>
#include <atomic>
#include <chrono>
#include <string>

#include "session.hpp"
#include "ylt/coro_io/coro_io.hpp"

namespace cinatra {

Expand Down

0 comments on commit 8ec8b18

Please sign in to comment.