Skip to content

Commit

Permalink
Change the default NameMappe to use a HumanReadableNameMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Oct 7, 2022
1 parent 201b647 commit 064a604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace kiwix {

ServerConfiguration::ServerConfiguration(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))
{}

ServerConfiguration& ServerConfiguration::setRoot(const std::string& root)
Expand Down

0 comments on commit 064a604

Please sign in to comment.