Skip to content
Snippets Groups Projects
Unverified Commit 56a87cc8 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

namedirectory: ignore final /

Change-Id: Ie6c67c2d195bc9d98f0b5a8b7f7de10f80554a30
parent bf3f1ac4
Branches
No related tags found
No related merge requests found
......@@ -90,6 +90,8 @@ NameDirectory::NameDirectory(const std::string& serverUrl, std::shared_ptr<dht::
: serverUrl_(serverUrl), logger_(std::move(l))
, httpContext_(Manager::instance().ioContext())
{
if (!serverUrl_.empty() && serverUrl_.back() == '/')
serverUrl_.pop_back();
resolver_ = std::make_shared<dht::http::Resolver>(*httpContext_, serverUrl, logger_);
cachePath_ = fileutils::get_cache_dir() + DIR_SEPARATOR_STR + CACHE_DIRECTORY +
DIR_SEPARATOR_STR + resolver_->get_url().host;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment