Skip to content

Commit

Permalink
Make api hostname into a complete URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Dec 11, 2023
1 parent db02367 commit 2aaa972
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CesiumIonClient/src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ CesiumIonClient::Connection::getApiUrl(
if (parseJsonObject(pResponse, d) && d.IsObject()) {
const auto itr = d.FindMember("apiHostname");
if (itr != d.MemberEnd() && itr->value.IsString()) {
return std::make_optional<std::string>(itr->value.GetString());
return std::make_optional<std::string>(
std::string("https://") + itr->value.GetString() + "/");
}
}
}
Expand Down

0 comments on commit 2aaa972

Please sign in to comment.