Skip to content

Commit

Permalink
Merge pull request #196 from pinotree/boost-1.80
Browse files Browse the repository at this point in the history
Fix build of http_debug_server with boost >= 1.80
  • Loading branch information
arximboldi authored Oct 6, 2023
2 parents 9e078dc + ed62d99 commit 9688e25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lager/debug/http_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ struct http_debug_server_impl
auto m = model_.load();
auto s = std::ostringstream{};
{
auto target = req.target().to_string();
auto target = static_cast<std::string>(req.target());
auto cursor =
std::stoul(target.substr(target.rfind('/') + 1));
auto result = m->lookup(cursor);
Expand All @@ -300,7 +300,7 @@ struct http_debug_server_impl
.route(beast::http::verb::post,
"/api/goto/[0-9]+",
[this](auto&& req) {
auto target = req.target().to_string();
auto target = static_cast<std::string>(req.target());
auto cursor =
std::stoul(target.substr(target.rfind('/') + 1));
context_.dispatch(
Expand Down Expand Up @@ -337,7 +337,7 @@ struct http_debug_server_impl
})

.route(beast::http::verb::get, "/?.*", [this](auto&& req) {
auto req_path = req.target().to_string();
auto req_path = static_cast<std::string>(req.target());
auto rel_path =
req_path == "/" ? "/gui/index.html" : "/gui/" + req_path;
auto full_path = resources_path() + rel_path;
Expand Down

0 comments on commit 9688e25

Please sign in to comment.