diff --git a/ext/CMakeLists.txt b/ext/CMakeLists.txt index 36b07aeece2..882e278892a 100644 --- a/ext/CMakeLists.txt +++ b/ext/CMakeLists.txt @@ -137,7 +137,7 @@ CPMAddPackage( CPMAddPackage( NAME cpp-httplib GITHUB_REPOSITORY yhirose/cpp-httplib - GIT_TAG v0.11.3 + GIT_TAG v0.15.3 ) # defines: httplib::httplib CPMAddPackage( diff --git a/src/world/http_server.cpp b/src/world/http_server.cpp index 2c202f2a1da..59ee16d2f15 100644 --- a/src/world/http_server.cpp +++ b/src/world/http_server.cpp @@ -1,4 +1,4 @@ -/* +/* =========================================================================== Copyright (c) 2022 LandSandBoat Dev Teams @@ -141,7 +141,7 @@ HTTPServer::HTTPServer() m_httpServer.set_error_handler([](httplib::Request const& /*req*/, httplib::Response& res) { auto str = fmt::format("

Error Status: {} ({})

", - res.status, httplib::detail::status_message(res.status)); + res.status, httplib::status_message(res.status)); for (auto const& [key, val] : res.headers) { @@ -156,12 +156,12 @@ HTTPServer::HTTPServer() // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status if (res.status >= 500) { - ShowError(fmt::format("Server Error: {} ({})", res.status, httplib::detail::status_message(res.status))); + ShowError(fmt::format("Server Error: {} ({})", res.status, httplib::status_message(res.status))); return; } else if (res.status >= 400) { - ShowError(fmt::format("Client Error: {} ({})", res.status, httplib::detail::status_message(res.status))); + ShowError(fmt::format("Client Error: {} ({})", res.status, httplib::status_message(res.status))); return; } });