Commit ca614d2a authored by Adrien Béraud's avatar Adrien Béraud

jamiaccount: set manager scheme only if not empty

Change-Id: I8b3cadd2ddea4dcef15fd869c1d4f28c4060da7e
parent c315d953
......@@ -1402,7 +1402,7 @@ JamiAccount::setAccountDetails(const std::map<std::string, std::string>& details
std::remove(proxyCachePath.c_str());
std::remove(proxyListCachePath.c_str());
}
if (managerUri_.rfind("http", 0) != 0) {
if (not managerUri_.empty() and managerUri_.rfind("http", 0) != 0) {
managerUri_ = "https://" + managerUri_;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment