mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-07-02 14:04:16 +00:00
Always remove the trailing slash from computed URI.
This commit is contained in:
parent
6ea74d090a
commit
51810fa2f2
1 changed files with 3 additions and 2 deletions
|
@ -131,8 +131,9 @@ namespace tawashi {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
boost::string_ref host_path = parSettings->at("host_path");
|
boost::string_ref host_path = parSettings->at("host_path");
|
||||||
if (host_path != "/")
|
if (not host_path.empty() and host_path[host_path.size() - 1] == '/')
|
||||||
oss << host_path;
|
host_path = host_path.substr(0, host_path.size() - 1);
|
||||||
|
oss << host_path;
|
||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
} //unnamed namespace
|
} //unnamed namespace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue