diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-15 23:44:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-03 21:37:04 +0100 |
| commit | c7e62e0893de4b4dfb99ca52ed6743636ec82b44 (patch) | |
| tree | 419789368dd45e42cc1c8affd173d76eb3d14879 /src/lib/http_server.cc | |
| parent | e804173af391f4e9a168372ef9f10fde24dba646 (diff) | |
Fix index.html generation, broken since the switch to fmt.
Diffstat (limited to 'src/lib/http_server.cc')
| -rw-r--r-- | src/lib/http_server.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/http_server.cc b/src/lib/http_server.cc index cf3f9756a..da495a8aa 100644 --- a/src/lib/http_server.cc +++ b/src/lib/http_server.cc @@ -96,7 +96,9 @@ Response HTTPServer::get(string const& url) { if (url == "/") { - return Response(200, fmt::format(dcp::file_to_string(resources_path() / "web" / "index.html"), variant::dcpomatic_player())); + auto page = dcp::file_to_string(resources_path() / "web" / "index.html"); + boost::algorithm::replace_all(page, "TITLE", variant::dcpomatic_player()); + return Response(200, page); } else if (url == "/api/v1/status") { nlohmann::json json; { |
