Skip to content
Snippets Groups Projects
Commit 14724d78 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Handle servernames terminated with a slash

parent 8967ee05
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,8 @@ Client::set_server(const std::string &server)
// Remove https prefix, if it exists
if (boost::algorithm::starts_with(server_name, "https://"))
boost::algorithm::erase_first(server_name, "https://");
if (server_name.size() > 0 && server_name.back() == '/')
server_name.erase(server_name.end() - 1);
// Check if the input also contains the port.
std::vector<std::string> parts;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment