Change the default NameMappe to use a `HumanReadableNameMapper`

This commit is contained in:
Matthieu Gautier 2022-10-07 12:06:58 +02:00
parent 37ccfb54ed
commit 7d83127d58
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace kiwix {
Server::Configuration::Configuration(std::shared_ptr<Library> library, std::shared_ptr<NameMapper> nameMapper) :
mp_library(library),
mp_nameMapper(nameMapper ? nameMapper : std::make_shared<IdNameMapper>())
mp_nameMapper(nameMapper ? nameMapper : std::make_shared<HumanReadableNameMapper>(*library, true))
{}
Server::Configuration& Server::Configuration::setRoot(const std::string& root)