summaryrefslogtreecommitdiff
path: root/crow/include/crow/http_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'crow/include/crow/http_connection.h')
-rw-r--r--crow/include/crow/http_connection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crow/include/crow/http_connection.h b/crow/include/crow/http_connection.h
index 51bc9febfc..297648e95a 100644
--- a/crow/include/crow/http_connection.h
+++ b/crow/include/crow/http_connection.h
@@ -4,7 +4,7 @@
#include <atomic>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/predicate.hpp>
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/beast/core/flat_static_buffer.hpp>
#include <boost/beast/http.hpp>
@@ -247,7 +247,7 @@ template <typename Adaptor, typename Handler, typename... Middlewares>
class Connection
{
public:
- Connection(boost::asio::io_service& ioService, Handler* handler,
+ Connection(boost::asio::io_context& ioService, Handler* handler,
const std::string& server_name,
std::tuple<Middlewares...>* middlewares,
std::function<std::string()>& get_cached_date_str_f,